> I'm using Netbeans IDE 4.0 and I want to use an XML parser.

Signature
Martin Honnen
http://JavaScript.FAQTs.com/
>> I'm using Netbeans IDE 4.0 and I want to use an XML parser.
>
> Java 1.4 comes with an XML parser, based on Crimson from Apache. And
> Java 1.5 comes with an XML parser too, based on Xerces from Apache.
Hmm, I've tried to find it put I can only find the one I have already
tried. Could you give me the path?
/Mikkel
Martin Honnen - 21 Mar 2005 17:04 GMT
>> Java 1.4 comes with an XML parser, based on Crimson from Apache. And
>> Java 1.5 comes with an XML parser too, based on Xerces from Apache.
>
> Hmm, I've tried to find it put I can only find the one I have already
> tried. Could you give me the path?
With Java 1.4 or 1.5 you would use the JAXP factory mechanisms with the
classes in javax.xml.parsers e.g. SAXParserFactory, SAXParser.
It is an abstraction layer that allows to use different parsers but it
automatically uses the built-in parser unless certain properties ask for
a different parser to be used.

Signature
Martin Honnen
http://JavaScript.FAQTs.com/