Hi!

Use DOM parsing! But if you have a large file it might be inefficient, then SAX parsing is better. If you only want to handle ONE entire element at a time you can build your own tree structure for that element only by using a stack or something similar. Then discard the tree and build a new for the next element etc.

 

Martin Gülich
Research Engineer
______________________________

Swedish Defence Research Agency
Dept. Of Systems Modelling
SE-172 90
Stockholm, Sweden

Phone: +46 8 55503691
Company web site: www.foi.se

 

-----Ursprungligt meddelande-----
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Skickat: den 27 augusti 2004 06:49
Till:
[EMAIL PROTECTED]
Ämne: Reading entire tree structure of an XML

 


Hi,


My XML has atleast 5 levels of nested elements. How can i read the entire data and put
it in a Container so that i can use that data for processing ?


Thanks and Regards,

Chetan

Reply via email to