Sorry, I think that I didn't explain myself very well.
I was trying to mean, which API shoould I use? JAXP is ok?
It's been a long time since I used it, and I don't know if there is a better or newer API. Third part or whatever.
As I wrote, it's just for reading a config file.
Thanks again!
Finally I'll use JAXP and SAX to read my application XML config file.
But I'm lost.
How does it function, do I have to put in the startElement() method as many "if" as entitys I need to process?
Example:
<program>
<printer id="xx" type="aa"/>
<source path="/aa/bb">
</program>
for this XML, how would you do? this way?
startElement (String uri, String localName, String qName, Attributes attributes) {
if (localname.equals("printer")) {
//get printer attributes
} else if (localname.equals("source")) {
//get source attributes
}
}
Thanks