Hi,
probably I was not specific enough.
I try the sample from the xerces homepage
http://xml.apache.org/xerces-c/program-dom.html, take the iterator and
step through the tree:
for (DOMNode* pCurrent = iterator->nextNode();pCurrent != 0; pCurrent
= iterator->nextNode())
{
string strValue = XMLString::transcode(pCurrent->getNodeValue());
std::cout << strValue << std::endl;
(...)
}
With that way I can retrieve the values from the tree. Now, how can I
get the element structure? How can I query the attribute?
Thanks,
Matthias
Gianni Mariani wrote:
>
> MBR wrote:
> > Help!
> >
> > Does anybody know a simple example how to use xerces
> > (http://xml.apache.org) with C++ to parse a simple xml file, go from
> > node to node and read the data in the nodes?
>
> I suggest you try the Xerces forums. They probably know alot more that
> those answering questions in this NG. This question really is not
> on-topic here. Read the FAQ. http://www.parashift.com/c++-faq-lite/
>
> BTW - I've used libxml2 http://xmlsoft.org/ . It's simpler than Xerces
> IMHO and has a C++ http://libxmlplusplus.sourceforge.net/ - although
> it's pretty trivial to roll your own.
>
> G