Guest braindead Posted January 9, 2006 Share Posted January 9, 2006 Hello,I'm looking for a goos XML parser in PHP. I have to parse an XML and i didn't find any good solution to di it.My XML is : <?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?> <products><product> <id>331058</id> <name>Canon</name> <description>dsfgdsfgd</description> <category>Photo cvb</category> <image-url width="250" height="198">hjghjgj</image-url> <prices-url>ghfghf</prices-url> <details-url>dfgdfgdgd</details-url> <reviews-url>dfgdfgdfg</reviews-url> - <rating type="professional"> <average>4,5</average> <num-ratings>5</num-ratings> </rating> <lowest-price currency="EUR">716.50</lowest-price> - <retailer> <name>wxcwx</name> <info-url>wxcxwc</info-url> <link>wwvxc</link> <logo height="50" width="150">wcwxcw</logo> <stock-info>wxcwxc</stock-info> <price currency="EUR">wxcw</price> <source-type>wxcwxc</source-type> <source-date>wcxcw</source-date> <price-with-shipping-min currency="EUR">wcwxc</price-with-shipping-min> <price-with-shipping-max currency="EUR">wxcwc</price-with-shipping-max> </retailer> </product> </products> Link to comment Share on other sites More sharing options...
hacknsack Posted January 10, 2006 Share Posted January 10, 2006 Two good articles here:Parsing XMLTutorial with ExampleAfter you know what makes it tick you can build your own.Both of the above include sample code.If you have questions let us know. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now