Re: [xml] (no subject)

On Fri, Apr 11, 2008 at 12:45:34PM +0000, mansour najet wrote:
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

  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:


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]