[xml] (no subject)
- From: mansour najet <man_jiji yahoo fr>
- To: xml gnome org
- Subject: [xml] (no subject)
- Date: Fri, 11 Apr 2008 12:45:34 +0000 (GMT)
Hello,
I have this problem with xmlParseMemory.
with this code it works fine.
#include <stdlib.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
int main() {
char buf[]= "<?xml
version='1.0'?><user><name>man</name></user>";;
xmlDocPtr doc;
xmlKeepBlanksDefault(0);
doc=xmlParseMemory(buf,sizeof(buf));
if (doc == NULL) {
fprintf(stderr, "Document XML invalide\n");
}
}
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
^
Envoyà avec
Yahoo! Mail.
Une boite mail plus intelligente.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]