yeah....I will check it out.

Jeremy

On Fri, Oct 5, 2012 at 9:47 AM, Jolyon Smith <[email protected]> wrote:

> 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;
>
> vs
>
>   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 <[email protected]> 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
>> there.
>> the one thing I havent done is run up wireshark.....this will tell me if
>> its leaving my machine in tact I guess.
>>
>> Jeremy
>>
>> On Fri, Oct 5, 2012 at 8:41 AM, Jolyon Smith <[email protected]>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:
>>>
>>> <root>
>>>   <child />
>>> </root>
>>>
>>> What IE actually shows is:
>>>
>>> <?xml version="1.0"?>
>>> -<root>
>>>     <child/>
>>>  </root>
>>>
>>> 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: [email protected]
>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>>> Unsubscribe: send an email to [email protected] with
>>> Subject: unsubscribe
>>>
>>
>>
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: [email protected]
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to [email protected] with
>> Subject: unsubscribe
>>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: [email protected]
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to [email protected] with
> Subject: unsubscribe
>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to