dom_import_simplexmlGets a DOMElement object from a SimpleXMLElement object Description
DOMAttrDOMElement dom_import_simplexml(object
$node )
This function takes the given attribute or element Parameters
Return ValuesThe DOMAttr or DOMElement. Changelog
ExamplesExample #1 Import SimpleXML into DOM with dom_import_simplexml
The above example will output: <?xml version="1.0"?> <books><book><title>blah</title></book></books> Example #2 Import SimpleXML into DOM and modify SimpleXML through DOM Error handling omitted for brevity.
The above example will output: <?xml version="1.0"?> <books foo="bar"><book><title>blah</title></book></books> See Also
|