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 If an empty string is passed as the source, a warning will be generated. This warning is not generated by libxml and cannot be handled using libxml's error handling functions. 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 <literal>loadXML</literal> '); echo $doc->saveXML(); ?> ]]> &reftitle.seealso;