That's an xml parser exception, probably thrown server-side.
That's an xml parser exception, probably thrown server-side. As the xml you're sending is valid (however you really should be using an xml library to build it! ), the error most likely means that the stream the server is receiving is being truncated... in other words the content-length header is less than the bytes sent.My guess is as you're using a unicode enabled version of delphi, your content-length will be set to half of the actual bytes sent; change the datatype of Text in StringToStream to AnsiString.
That worked! :P Any suggestions on a easy to use xml library that is compatible with Lazarus also? – Brad Sep 4 '10 at 3:18 Ended up using OmniXML for an XML library – Brad Sep 6 '10 at 10:20.
Or ... Stream. Write(Text1, (Length(Text) * SizeOf(Char))); ... temp:= '... encoding="UTF-16"?
Welcome to Stack Overflow. What was the leading "or" referring to? Please don't assume that people have read all the other answers before reading yours.By default, Stack Overflow displays answers ranked by total votes, so ordering can change as people vote on them.
Answers with an equal number of votes are displayed in random order. Also, answers with code do better when there is text in them explaining what the code is doing and why it's important. – Rob Kennedy Sep 2 '10 at 7:26.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.