php domdocument: when i create an xml, how can i ident each element properly?
When i create an XML using php's DomDocument it creates the xml properly but all the elements are in one line, the xml file itself is not so readable开发者_运维技巧.
I searched in google and find that the attribute formatOutput in DomDocument should resolve the issue, i use php 5.3 and i do not have this properly in DomDocument.
any ideas?
Like this..
$doc = new DOMDocument('1.0');
$doc->formatOutput = true;
I see you said that you're using 5.3 and this isn't working but nothing in the Docs implies that this has been deprecated though
精彩评论