[
Lists Home |
Date Index |
Thread Index
]
- To: xml-dev@lists.xml.org
- Subject: Parsing filtered XML into a DOM tree - how?
- From: Graham Leggett <minfrin@sharp.fm>
- 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
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@sharp.fm "There's a moon
over Bourbon Street
tonight..."
|