yeah....I will check it out.<div><br></div><div>Jeremy<br><br><div class="gmail_quote">On Fri, Oct 5, 2012 at 9:47 AM, Jolyon Smith <span dir="ltr"><<a href="mailto:jsmith@deltics.co.nz" target="_blank">jsmith@deltics.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, then I suppose another possibility is that whatever is getting the text representation of your xml document to include in your request content is doing it by grabbing the root node of the document "as text/string" rather than the complete xml document. In pseudo code:<div>
<br> httpRequest.Content.AsString := xmldoc.RootNode.AsString;<br><br>vs<br><br> httpRequest.Content.AsString := xmldoc.AsString;<br><br></div><div><div>i.e. It may not be your HTTP code or whatever components you are using per se (it is highly unlikely that the HTTP component is deliberately and selectively checking for xml content and then doing a surgical strike to cleanly remove the prolog from that xml), but rather the code that assembles the request to send via that HTTP component is not getting the xml in quite the correct fashion, despite the actual source xml "dom" itself being correct and complete.<br>
<br></div><div>I hope that makes sense. :)<br></div><div><div class="h5"><div><br></div><br><div class="gmail_quote">On 5 October 2012 09:39, Jeremy Coulter <span dir="ltr"><<a href="mailto:jscoulter@gmail.com" target="_blank">jscoulter@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yip, its definitly there. I build the XML up, and I am checking it before it leaves so I know that at the point of calling the "Post" its definitly there.<div>
the one thing I havent done is run up wireshark.....this will tell me if its leaving my machine in tact I guess.</div>
<div><br></div><div>Jeremy<br><br><div class="gmail_quote"><div><div>On Fri, Oct 5, 2012 at 8:41 AM, Jolyon Smith <span dir="ltr"><<a href="mailto:jsmith@deltics.co.nz" target="_blank">jsmith@deltics.co.nz</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>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>
<br></div></div>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div>