DOMDocument->loadXML Load XML from a string &reftitle.description; DOMDocument mixed loadXML stringsource 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.examples; Creating a Document '); echo $doc->saveXML(); $doc = new DOMDocument(); $doc->loadXML(''); echo $doc->saveXML(); ?> ]]> &reftitle.seealso; DOMDocument->load() DOMDocument->save() DOMDocument->saveXML()