sorry my mistake ... of course you can use a SAX parser. Just substitute
DOMParser with SAXParser and it should work as well.
> -----Original Message-----
> you should use a DOMParser rather than a SAX parser, like this:
>
> DOMParser parser = new DOMParser();
> URL url = new URL( "http://www.foo.com/xml/foo.xml" );
> URLConnection connection = url.openConnection();
> InputStream instream = connection.getInputStream();
> InputSource inputSource = new InputSource( instream );
> parser.parse( inputSource );
>
>
> hope this helps
> Rob
>
> > -----Original Message-----
> > From: tonney [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 06, 2000 3:15 PM
> > To: [EMAIL PROTECTED]
> > Subject: XML question
> >
> >
> > hello,
> > I'm a newer at jsp, I have a very simple question: Now i
> > have configured tomcat , jdk1.2, j2ee1.2 successfully, but
> > how can i parse the XML files? I try SAX, but
> > SAXParserFactory can't be found at all.
> > Any one can lend a hand?
> >
> > Tonney.
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets