Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use DOM and SAX back-to-back? 1

Status
Not open for further replies.

knowpayne

MIS
Sep 19, 2004
5
US
Assuming the goal of parsing an XML document is to only use parts of it based upon certain multiple relational data criteria, but the document is very large, is it advisable to use SAX to run through the XML document first to select and create another, smaller, XML file, then pushing that result through DOM for the ultimate outcome? Or, should there be the output of another type of file and a function built with a programming language used for the second part?
 
I use SAX to read large files, and loading the individual "records" into a DOM all the time. It's a common technique for managing large XML files.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top