Re: [xml] (no subject)
- From: Daniel Veillard <veillard redhat com>
- To: mansour najet <man_jiji yahoo fr>
- Cc: xml gnome org
- Subject: Re: [xml] (no subject)
- Date: Fri, 11 Apr 2008 09:17:09 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]