< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
A simple example would be to add a comment in one of the xml data used to test the xml cursor. In the file testXMLCursor.cxx located in resip/stack/test, you can modify the first xml data in this way: const Data test( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" "<presence xmlns=\"urn:ietf:params:xml:ns:pidf\"\r\n" " xmlns:ep=\"urn:ietf:params:xml:ns:pidf:rpid:rpid-person\"\r\n" " xmlns:pp=\"urn:ietf:params:xml:ns:pidf:person\"\r\n" " entity=\"sip:chris@xxxxxxxxxxxxx\">\r\n" " <pp:person>\r\n" " <status>\r\n" " <ep:activities>\r\n" " <ep:activity>away</ep:activity>\r\n" " </ep:activities>\r\n" " </status>\r\n" " </pp:person>\r\n" " <tuple id=\"9b6yhF2Gk37o4\" >\r\n" " <status><basic>open</basic></status>\r\n" " </tuple>\r\n" "<!--foo-->" "</presence>"); The same problem will occur: DEBUG | 20090519-235616.186 | testXMLCursor | RESIP | 3077678800 | BaseException.cxx:17 | BaseException at ParseBuffer.cxx:1058 dereferenced ParseBuffer eof ParseException dereferenced ParseBuffer eof @ ParseBuffer.cxx:1058 testXMLCursor: testXMLCursor.cxx:74: int main(): Assertion `false' failed. I am using resiprocate to simulate my UAS and I wanted to use the xml parser in resip because it enables to parse xml data without storing this data into a file. That's why I use this parser. Thanks for your help. Date: Tue, 19 May 2009 13:28:58 -0700 Subject: Re: [reSIProcate-users] [ParseBuffer - error message during xml parsing] From: derek.macdonald@xxxxxxxxx To: sgodin@xxxxxxxxxxxxxxx CC: jean1933@xxxxxxx; resiprocate-users@xxxxxxxxxxxxxxx I would not recommend using xmlcursor for anything more than what is generated by resip; I called for deprecating it a while ago:) You are better off removing that from your build and using your own xml parsing library of choice. -Derek On Tue, May 19, 2009 at 12:57 PM, Scott Godin <sgodin@xxxxxxxxxxxxxxx> wrote: A quick look at the code in XMLCursor.cxx indicates that is trying to handle comments. However, the xml parser in resip is pretty basic - I don't think it even handles xml namespaces correctly. There has been discussions in the past about deprecating it. If you can post the XML body, then I can try and track this down further when I get a chance. Votre correspondant a choisi Hotmail et profite d’un stockage quasiment illimité. Créez un compte Hotmail gratuitement ! |