You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Eder Paraiso Carneiro Flor <ed...@gmail.com> on 2009/09/25 01:24:31 UTC

Xerces API question

Hi,
I'm a computer science student and i'm studing xml in a project. I'm,
studing in a Steven Holzner book, and looking at java api for xml, more
specifically for SAX. I have a question: what's the difference betwen
javax.xml.parsers.SAXParser and org.apache.xerces.parsers.SAXParser? They
dont do the same thing? If i want to use xerces i have to download your
packages?
Sorry for many questions, i hope you can help me.
Thanks

-- 
Eder Paraiso Carneiro Flor
Universidade Federal de Uberlândia
Brasil
PET Computação

Re: Xerces API question

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Eder,!

Eder Paraiso Carneiro Flor <ed...@gmail.com> wrote on 09/24/2009 07:24:31
PM:

> Hi,
> I'm a computer science student and i'm studing xml in a project.
> I'm, studing in a Steven Holzner book, and looking at java api for
> xml, more specifically for SAX. I have a question: what's the
> difference betwen  javax.xml.parsers.SAXParser and org.apache.
> xerces.parsers.SAXParser? They dont do the same thing?

javax.xml.parsers.SAXParser is an interface (i.e. API) which is part of
JAXP. org.apache.xerces.parsers.SAXParser is part of the implementation
(i.e. not an API). You should generally be coding to the standard APIs.

> If i want to use xerces i have to download your packages?

If you don't already have it, it's available for download here:
http://xerces.apache.org/xerces2-j/download.cgi

> Sorry for many questions, i hope you can help me.
> Thanks
>
> --
> Eder Paraiso Carneiro Flor
> Universidade Federal de Uberlândia
> Brasil
> PET Computação

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org