> Gareth Reakes <[EMAIL PROTECTED]> on 10/17/2002 04:57:57 PM
> 
> 
> >The xerces-c DOM API which you can get from xml.apache.org will provide
> >details of how to traverse a DOM tree. You will then have to write your
> >database code and insert the values you want from the nodes. There are
> >some example programs with the download you can look at as well.
> 
> I did download and checked the directory 'samples' but I couldn't find the
> appropriate code. Could you please give me the name of sample where I can find
> the relevant code. I am using Xerces-C++ 2.1

For examples of writing SAX parsers look at the examples that start with 
SAX such as SAX2Count and SAX2Print.
There are no specific examples that just traverse a DOM tree. The API is 
fairly self explanatory. Look at methods in DOMNode such as getFirstChild 
and getNextSibling.


Gareth



-- 
Gareth Reakes, Head of Product Development  
DecisionSoft Ltd.            http://www.decisionsoft.com
Office: +44 (0) 1865 203192



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to