"How do I get started?" First, skim through this to get some ideas: http://xerces.apache.org/xerces-c/faq-parse-3.html http://xerces.apache.org/xerces-c/program-3.html
There are two main parsing interfaces, DOM and SAX. DOM is easier to understand, it builds a tree for you representing the entire document, which you can then traverse. I would start with the DomPrint sample and understand that, then modify it to met your own needs. You might also look at tools that are designed to query XML, like XPath or XSLT: http://www.w3schools.com/xpath/default.asp http://www.w3schools.com/xsl/ john -----Original Message----- From: Fábio Bertinatto [mailto:[email protected]] Sent: Monday, March 08, 2010 10:16 AM To: [email protected] Subject: Parse XML Hi! I need to parse this file (report.xml) and extract some information...for example, the content of <LOGDATE> (REQUEST>CONTENT>ACCESLOG>LOGDATE). I have been tried do this with Libxerces but the documentation is very confuse for me... Someone can help me? Thanks -- Fábio
