Using the typical DOMDocument way of creating of XML output (createElement, appendChild etc) via PHP, then dumping with echo $doc->saveXML();
The receiving XML parser (AJAX) doesn't like it. If I tell it to use a static XML file that I create by removing the \n and \r's, all is well.
ie. I strip
...<item>13</item>\n <item>15</item>\n...
to become
...<item>13</item><item>15</item>...
Surely saveXML() would be outputing valid XML. Is it some sort of Windows thing?
The receiving XML parser (AJAX) doesn't like it. If I tell it to use a static XML file that I create by removing the \n and \r's, all is well.
ie. I strip
...<item>13</item>\n <item>15</item>\n...
to become
...<item>13</item><item>15</item>...
Surely saveXML() would be outputing valid XML. Is it some sort of Windows thing?