[xml] Fwd: Value out of ellement?

Forward to the list too
---------- Forwarded message ----------
From: Csaba Raduly <rcsaba gmail com>
Date: Thu, Oct 6, 2011 at 5:12 PM
Subject: Re: [xml] Value out of ellement?
To: Rob Eisink <reisreg 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

You need to call xmlTextReaderRead to move to the XML_TEXT_READER_TEXT
node, then call xmlTextReaderValue

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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]