[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Parsing filtered XML into a DOM tree - how?

  • To: xml-dev@l...
  • Subject: Parsing filtered XML into a DOM tree - how?
  • From: Graham Leggett <minfrin@s...>
  • Date: Thu, 25 Sep 2003 19:39:46 +0200
  • User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.4) Gecko/20030712

parse xml into tree
Hi all,

I have a need to read an XML file into a DOM tree, however certain 
elements in the tree are large and not relevent to my application, and I 
would like to filter them out while I parse the XML file.

All the examples and docs I can find describe either parsing the entire 
XML file into a DOM tree, or doing the entire parsing job yourself using 
a SAX parser.

I have seen some references in the Xerces parser to DOM filters, but I 
cannot find any example code on the correct way to use them. It seems as 
soon as you try and use org.w3c.ls.DomParser, you lose the ability to 
set whether the parser validates or not (or the docs just don't tell you 
how to do it).

Does anyone have any pointers to any concise instructions on how to 
achieve filtering in a DOM parser?

Regards,
Graham
-- 
-----------------------------------------
minfrin@s...		"There's a moon
					over Bourbon Street
						tonight..."


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.