Hi, I'm a newbie on xerces-c.
In particular, I'm using the DOM API provided by xerces-c.

I defined a fairly complicated XML schema.
My program parses the XML document based on my XML schema and use the information extracted from the XML document to config the program during run-time.

I was surprise that in-order to extract a piece of information from the DOMElement, it took me about 10 to 20 sloc.
For example, I need to invoke getElementByTagName() few times in-order to get to the node where the information reside, and then invoke getChildNode()->item(i) to get the value, after that, I need to use XMLString::transcode() to convert the result to cont char*.

I wonder if I did anything wrong? or if there's a faster way to access information through the DOM tree.

Thanks!

- dc

Reply via email to