huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Invalid XML characters on Facebook's response cause the parser to fail #205

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We've found some exceptions when retrieving the XML response from a FQL
request. Those exceptions are logged as fatal errors like this one:

[Fatal Error]: An invalid XML character (Unicode: 0xb) was found in the
element content of the document.

This exception occurs inside the "parseCallResult" method of the
FacebookXmlRestClient class. I'm attaching a file that contains my modified
parseCallResult method and 2 new functions that are called from the
modified method. This is working for us now, so I hope you can incorporate
this (or a better way to do it, which probably exists) into the new
version, as this is probably happening to other people as well. We've
experienced this only with certain users. I'll open a bug at Facebook, as
it's really a problem on their side for sending invalid chars as part of
the XML.

Original issue reported on code.google.com by resteban...@gtempaccount.com on 12 May 2009 at 11:24

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks. Could you attach this in the form of a patch that can be easily applied 
in 
Eclipse using Team --> Apply Patch?

Original comment by david.j....@googlemail.com on 30 May 2009 at 5:28

GoogleCodeExporter commented 8 years ago
Or at least a description of what you changed and why?

Original comment by fern...@gmail.com on 1 Nov 2009 at 1:22