Using SAX to generate DOM documents
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
I need to process some fairly large (>.75Gb) XML files, (actually in a batch, but once I can cope with one, he said, optimistically...) At the moment, I have used SAX and a FSA to parse and convert the data from XML to an internal format. However, the format changes rapidly, and the FSA is a pain to keep amending. The size means that DOM directly is a no-no. What I had in mind was to match specific tags, and collect all the contained stuff into a smaller DOM document, which I can then process in a simplified way. I've used DOM to read stuff before, and obviously, SAX, but not to write, so I'd be grateful for any hints or pointers to samples of this kind of thing, as I'm assuming I'm not the first to consider this option. Steve S