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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to