This PHP4 code parses an XML document into a multidimensional array. The parser recognizes and processes almost all of XML, including processing instructions, general or external entities and notations. In addition many functions are provided to search and edit the document, build a new one and write it back to a string or to a file. The xml22 code is different to the Document Object Model.