This class can convert between XML files and arrays or strings.
It can parse a XML file into a DOM document object, so it can be returned as an array or displayed using a XSL stylesheet.
The parsed XML document can also be manipulated to add, change or remove nodes. Nodes may be searched using XPath.
The resulting document can be regenerated in XML format.
Page on phpClasses.
Download