From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Arthur Johnson
Sent: 2008年6月18日 10:51
To: [email protected]
Subject: Re: [xml] xmlReadMemory reading struct char pointer issue

 

>I changed the above xmlReadMemory call to the following line:

 

>doc = xmlRecoverMemory(ctxt->sdiResponse, strlen(ctxt->sdiResponse));

>It seems to load the XML but I get the following error:

You get NULL in with xmlReadMemory because the content being parsed is not
well-formed, RecoverMemory tries to parse inspite of error.

 

>Entity: line 1: parser error : Extra content at the end of the document

 

This error happens if you have some content after the end of the root
element, something like

 

<root>

<element1/>

<root/>

<element2>------->Extra content at end of document


 

 

 

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to