I'm trying to create an one lined XML String using PHP programming language.
I'm using a DomDocument for that.
i'm setting preserveWhitespace
to false and formatOutput
to false but when i execute
saveXML()
theoutput still shows me new lines betweeen each XML output. any ideas?
my code:
$domtree = new \DOMDocument();
$domtree->preserveWhiteSpace = false;
$domtree->formatOutput = false;
...