[DUG] Can anyone explain this one?
jsmith at deltics.co.nz
Fri Oct 5 09:47:16 NZDT 2012
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:
httpRequest.Content.AsString := xmldoc.RootNode.AsString;
httpRequest.Content.AsString := xmldoc.AsString;
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.
I hope that makes sense. :)
On 5 October 2012 09:39, Jeremy Coulter <jscoulter at gmail.com> wrote:
> 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
> the one thing I havent done is run up wireshark.....this will tell me if
> its leaving my machine in tact I guess.
> On Fri, Oct 5, 2012 at 8:41 AM, Jolyon Smith <jsmith at deltics.co.nz> wrote:
>> If adding an "extra" prolog fixes it then I would ask if the prolog is
>> really there in the original xml to start with ?
>> 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:
>> <child />
>> What IE actually shows is:
>> <?xml version="1.0"?>
>> 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.
>> NZ Borland Developers Group - Delphi mailing list
>> Post: delphi at listserver.123.net.nz
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
>> Subject: unsubscribe
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Delphi