tags:

views:

100

answers:

2

i want read XML file using Java ,but the structure of XML file is unknown or in other words the content of XML file is generated dynamically how to read each and every element along with attributes.

+2  A: 

JDOM can help you.

duffymo
+2  A: 

DOM and SAX parsers are part of the JDK, and a bunch of other libraries are available. In general, you don't need to know the format in order to parse the document. You do need to know the format (or at least some of it) in order to extract data from the document, though.

mwittrock