PHP: DOMDocument::saveXML - Manual
I had an unexpected behavior in some parsing code, because of this saveXML method that is saving the tags without namespace specification. If you try to load into a DOMDocument a string saved from a DOMNode that has a referenced namespace but it the original document it was not defined in that element, you get a not well formed xml. ...
DA: 9 PA: 12 MOZ Rank: 12