DOMDocument->loadXML()
Load XML from a string
&reftitle.description;
DOMDocument
mixedloadXML
stringsource
intoptions
Loads an XML document from a string.
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;
source
The string containing the XML.
&reftitle.returnvalues;
&return.success; If called statically, returns a DOMDocument.
&reftitle.examples;
Creating a Document
loadXML('');
echo $doc->saveXML();
?>
]]>
Static invocation of loadXML
');
echo $doc->saveXML();
?>
]]>
&reftitle.seealso;