[xml] xmlReaderForMemory Error
- From: Divij Bhatt <divijbhatt gmail com>
- To: xml gnome org
- Subject: [xml] xmlReaderForMemory Error
- Date: Fri, 18 Sep 2009 07:16:41 -0000
Hi All,
I have an issue while parsing from the memory.
char buffer[BUFFER_SIZE]="<info attr=\"attr_val\"/>ele_value";
reader = xmlReaderForMemory(buffer,strlen(buffer),NULL,NULL,options);
after that when i am calling
xmlTextReaderRead(reader); it is returning -1 but if I change the buffer to:
char buffer[BUFFER_SIZE]="<info attr=\"attr_val\">ele_value<info/>
it is returning 1 and I am getting all the element and attribute values.
Is any other thing is required to do before setting up the reader.
Regards
Divij K
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]