Greetings.
I'm using PHP DOM functions to generate a XML document, but the result is always something like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<foo><bar>baz</bar><quux>qux</quux></foo>
It would be really great if PHP could generate nicely formated XML code, such as (and I don't even ask for indentation):
<?xml version="1.0" encoding="iso-8859-1"?>
<foo>
<bar>baz</bar>
<quux>qux</quux>
</foo>
I've tried reading the docs, looking specially for any properties or methods that could explicitly generate a new line char, but couldn't find nothing.
Is this possible?
TIA,