DOMDocument->load()
Load XML from a file
&reftitle.description;
DOMDocument
boolload
stringfilename
intoptions
Loads an XML document from a file.
This method may also be called statically to load and create a
DOMDocument object. The static invocation may be
used when no DOMDocument properties need to be set
prior to loading.
&reftitle.parameters;
filename
The path to the XML document.
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
Creating a Document
saveXML();
$doc = new DOMDocument();
$doc->load('book.xml');
echo $doc->saveXML();
?>
]]>
&reftitle.seealso;