GetFriends error

Jul 18, 2007 at 8:57 PM
I'm calling getFriends for a user and am getting this error back:

'', hexadecimal value 0x16, is an invalid character. Line 9717, position 1.

the call:

Line 255: Dim friends As Collection(Of Facebook.Entity.User) = _fbService.GetFriends

not sure why? It works for most, could it be because that user has too many friends? friends with weird characters in their name?

more error info:
System.Xml.XmlTextReaderImpl.Throw(Exception e) +87
System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) +77
System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar) +185
System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars) +1903496
System.Xml.XmlTextReaderImpl.ParseText() +130
System.Xml.XmlTextReaderImpl.ParseElementContent() +511
System.Xml.XmlTextReaderImpl.Read() +26
System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +557
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +50
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +162
System.Xml.XmlDocument.Load(XmlReader reader) +96
System.Xml.XmlDocument.LoadXml(String xml) +194
Facebook.API.FacebookAPI.LoadXMLDocument(String rawXML) +68
Facebook.API.FacebookAPI.GetUserInfo(String userIds) +183
Facebook.API.FacebookAPI.GetFriends() +91

Jul 18, 2007 at 9:30 PM
Hmmm. Looks like the DOM is failing to load the XML returned from facebook.

Can you break in the toolkit, and the GetUserInfoXML and post the string of xml that is returned. Seems that something is unique about it.
Jul 19, 2007 at 5:24 AM
i looked at the rawXML it's huge.
but it looks like it's breaking because the <quotes> node
has some bad data.
the rawXML doesn't have CDATA (well, looks like none of the nodes have CDATA.
so the XML return has the invalid, character, in there but if you try top open the XML you get the error.