[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected EOF in xml tag



I check with the web service provider and they can send EOF in the xml document.

So I will save the xml document to a file and replace this EOF by nonsense character.

Thanks

Le 17/01/2011 02:29, Mike Krebs a écrit :
Have you verified with the web service provider that they are sending EOF? It seems unlikely EOF is in the middle of an XML document. I don't think that is considered "valid" XML and must not parsed once it is invalid.

If they aren't sending EOF, then we have to see how you are getting the data. Saving to a file? Reading into your own variable?

If they are purposely sending EOF in the XML document and for some reason you want to accept that as valid XML, you will have to trap for it by checking the incoming data and converted the bad EOF into some nonsense character that won't affect the parse.
________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of MRSINFOSYS [mrs.infosys@xxxxxxx]
Sent: Sunday, January 16, 2011 2:19 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Unexpected EOF in xml tag

Hello everybody,

I'm consuming a web service with httpapi that sends me back unexpected
EOF in xml tag.
This EOF stops the xml parsing and the xml file is not parsed completly.

Any idea to ignore this EOF ?

Thanks
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------



begin:vcard
fn:Franck Peter
n:Peter;Franck
org:SDV LI;Informatique
email;internet:mrs.infosys@xxxxxxx
tel;work:04.42.02.44.66
tel;fax:04.42.89.42.89
version:2.1
end:vcard

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------