tags:

views:

90

answers:

2

Hello All, I am a .net developer, now trying to learn PHP for the first time. .Net provides API to parse complex XML files. How one can achieve this using PHP? I have some samples which uses basic XML files. I am using XML structure having attributes included in it. Please help to achieve this. Thanks in advance. :)

+1  A: 

I would recommend SimpleXML and DOM, though I'm not sure how complex your XML is but both are pretty well and have Xpath support.

meder
+1  A: 

There are several more or less built-in ways to handle XML in PHP.

You can find an overview here: http://de3.php.net/manual/en/refs.xml.php

I like simpleXML the best.

Pekka