|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Parsing filtered XML into a DOM tree - how?
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








