Hi,
David Chu wrote:
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.
If speed is not a huge issue for you you can use an XPath library such
as Pathan or Xalan which can both integrate with Xerces.
Cheers,
Gareth
--
Gareth Reakes, Managing Director Embrace Mobile
+44-1865-811197 http://www.embracemobile.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]