There are actually four relatively simple ways to read an XML file:
DOMthat uses the DOM API (and therefore must load the entire document into memory)SimpleXML, which provides a very simple and elegant way to parse XML documents (but does not have a lot of document manipulation methods), it also loads the entire document into memory.XMLReader - , . , , , ( XML-), , DOM XMLReader::expand().XML Parser - , SAX-, , , XML ; , XMLReader ( ).
:
SimpleXML XMLXMLReader XML