I am trying to understand parsing in XML but it is quite difficult. The problem i have is that i am working with JDK1.4 and i am trying to parse an xml file using xpath.
Having looked around i cant work out whether xpath is possible in JDK1.4 or not.
I must admit i dont quite understand the whole XML processing architectures. There seems to be quite a lot of libraries, API that is resulting in my brain being overloaded.
From what i have read, to be able to use XPATH i need JAXP. Some articles say that JAXP is included in JDK1.4 and some say it is not. is it?
I tried running the following code and it didnt work in 1.4 but does work in 1.5
Having read further i found that JAXP can be downloaded separately. But the problem i found is that there are so many variants of it.
I did download one of the variants, i.e.
http://jaxp.java.net/downloads.html. This gave me to library files
I tried the same code with the above libraries in the class path and it seems to have compile successfully but when i run it it just terminates.
I guess i need to take a step back and understand what i am doing.
- What do i need to do to be able to parse an xml file using xpath *in jdk1.4*
- Is there a resource that can help in understanding xml processing (i.e. the difference in JAXP, JDOM, XPATH, xalan, xerces etc)