ahmad nickabadi schrieb:
Hi all,
I'd like to know after parsing the string how I can explore the
nodes and sub-nodes in the XML string. I mean what APIs are
available to do so and how I can access them.
Can enyone please help me.
Best regards,
Ahmad.
David Bertoni <dbert...@apache.org> wrote:
Tatireddy, Vinod wrote:
alsm wrote,
I made the changes but now when the program executes
parser->parse(*memBufIs); an error occurs..
typo mistake in my previuos email, casting should be from size not from input
buffer..
unsigned int *len = reinterpret_cast(&InputSize);
The behavior of dereferencing this pointer is undefined, and will
certainly be a problem on a platform where sizeof(unsigned int) is
smaller than sizeof(size_t).
If you really want a cast, this is the safe thing to do:
const unsigned int len = static_cast(InputSize);
Dave
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
When parsing is done a DOMDocument is created.
Access is provided by:
DOMDocument * doc = parser->getDocument();
You can retrieve SubNodes by doc->GetChildNodes();
A simpler and more abstract way is to use xsd. It's a XML data binding
for C++. Look here for further information:
news://gmane.text.xml.xerces-c.user:119/dr4pdp$7d...@sea.gmane.org
I hope that will help.
SG