Forward to the list too ---------- Forwarded message ---------- From: Csaba Raduly <rcs...@gmail.com> Date: Thu, Oct 6, 2011 at 5:12 PM Subject: Re: [xml] Value out of ellement? To: Rob Eisink <reis...@hotmail.com>
On Thu, Oct 6, 2011 at 5:03 PM, Rob Eisink wrote: > Let me more clear.. > > The xml looks like <Device>JohnDoe</Device> > I call name = xmlTextReaderName(reader); > > the name is Device That means you are on a XML_READER_TYPE_ELEMENT. When you use the xml reader, your xml line will appear as three nodes: XML_READER_TYPE_ELEMENT for <Device> XML_TEXT_READER_TEXT for JohnDoe XML_READER_TYPE_END_ELEMENT for </Device> You need to call xmlTextReaderRead to move to the XML_TEXT_READER_TEXT node, then call xmlTextReaderValue Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml