just had some problem with libXML printing this XML code in a formatted way:
<?xml version="1.0" encoding="UTF-8"?>
<parent>anyvalue
<child>anyvalue</child>
</parent>
LibXML puts the whole <parent>
element in one line like this:
<parent>anyvalue<child>anyvalue</child></parent>
not very nice.
My question is, if that is valid XML.
No Errors in any webbased validators so far. Used w3c validator and some more.
In case this is valid XML, is there any solution to prevent indentation for this type of xml structure in libXML?
Thanks!