parsing xml using DOM parser in java

hi there!!!

i don have much idea about parsing xml.. i have an xml file which consists of details regarding indentation and spacing standards of C lang.. i need to read the file using DOM parser in java n store each of the attributes n elements in some data structure in java..

need help as soon as possible!!!

[329 byte] By [jansria] at [2007-11-26 18:52:06]
# 1
For DOM visit this link: http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/TOC.html It has concepts and examples explained and will give a fast start in using DOM.
java_a at 2007-7-9 6:26:07 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

DOM is the easiest way to parse XML document, google for JDOM example it is very easy to implement.

you need to know what is attribute, what is text content and what is Value in XML then easily you can parse your document with dom (watch for space[text#] in your XML document when you parse it).

you get root node then nodelist of childs for root then go further inside, it is easy believe me.

RezaRavasizadeha at 2007-7-9 6:26:07 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
I have the xerces-j-src n tools packages.. which consists of the jar files can anyone please tell me how to set the classpath.. so tht it gets set permanently..
jansria at 2007-7-9 6:26:07 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
This question is not relevant to this forum bring it to "New To Java" or "Java Programming"
RezaRavasizadeha at 2007-7-9 6:26:07 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...