V
vk02720
What is the standard/safe/optimal way of parsing XML from Java
program? I have to use JDK 1.4 to begin with now but in few months
code should be compilable and workable with 1.5 as well.
What has been confusing is 1.4 including XML parser but not Xerces?
How can I use Xerces with 1.4? Should I just add the xerces jar file
to my project and use JAXP API? From some previous projects, I tried
to look for xerces jars - some have xerces.jar and some
xercesImpl.jar. What is the difference? Where can I download recent/
correct one to be able to use it with 1.4/JAXP?
After I build my program, is there any way I can know which parser is
being used? Anything I can call in my program to print some info about
parser?
I am currently required to do atleast:
- validate my input XML against a schema (in a seperate xsd file)
- to be able to use DOM and SAX basic APIs.
- to be able to use Xpath.
Any insights/advice appreciated.
TIA
program? I have to use JDK 1.4 to begin with now but in few months
code should be compilable and workable with 1.5 as well.
What has been confusing is 1.4 including XML parser but not Xerces?
How can I use Xerces with 1.4? Should I just add the xerces jar file
to my project and use JAXP API? From some previous projects, I tried
to look for xerces jars - some have xerces.jar and some
xercesImpl.jar. What is the difference? Where can I download recent/
correct one to be able to use it with 1.4/JAXP?
After I build my program, is there any way I can know which parser is
being used? Anything I can call in my program to print some info about
parser?
I am currently required to do atleast:
- validate my input XML against a schema (in a seperate xsd file)
- to be able to use DOM and SAX basic APIs.
- to be able to use Xpath.
Any insights/advice appreciated.
TIA