If adding an "extra" prolog fixes it then I would ask if the prolog is really there in the original xml to start with ?<br><br>Some XML viewers will add a default prolog when viewing xml that doesn't contain any prolog. When viewing this xml in IE for example:<div>
<br></div><div><div><root></div><div> <child /></div><div></root></div><div><br></div><div>What IE actually shows is:</div><div><br></div><div><div><?xml version="1.0"?></div><div>-<root></div>
<div> <child/></div><div> </root></div></div></div><div><br></div><div>I am sure I have seen similar behaviour in other xml viewers. I find this an increasingly prevalent problem, with computer software trying to be too "helpful"; especially irksome in data viewers that introduce artefacts in the data being viewed that aren't actually present.</div>