I am thinking of using SAX parser to parse the XML file.
Can anyone suggest better approach for this?
Also,eclipse is getting crashed.So, is there anyway that I can see the visual representation of XML file i.e node-tree?
William Brogden wrote:This question comes up all the time - I really should have a canned answer - anyway,
the answer depends on the following:
What do you need to do with the XML document?
Extract specific bits without modifying it
Convert some or all of the contents to a new document format - XML? HTML? PDF?
Personally I use XML SPY to look at large XML documents nicely formatted - I think they have a free sample version.
I want to Extract specific bits without modifying it
Author and all-around good cowpoke
Joined: Mar 22, 2000
Ok, that is one of the simpler problems!
You can use SAX style processing which will be fast and use little memory but requires thinking in terms of events. With SAX it is up to you the programmer to track the "current" location the parser is working on so you will know when the bits you need are about to be parsed.