On Fri, Apr 11, 2008 at 12:45:34PM +0000, mansour najet wrote:
> Hello,
> I have this problem with xmlParseMemory.
> with this code it works fine.
[...]
> } but when I try to create a function which take char* buffer like argument 
> xmlParseMemory return NULL and I have this error
> Entity: line 1: parser error : ParsePI: PI xm space expected
> <?xm
>     ^

  Because you're are a C beginner and can't make the difference between
the size of a char array and the size of a char pointer. Absolutely not
a libxml2 problem.

  Do yourself a favour and at least copy real example code coming from the
project not some very outdated code of unknown origin which turns the parser
into a non-conformant mode:
  http://xmlsoft.org/examples/index.html#parse3.c

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to