java sax parser + XERCES + dtd

O

omm1979

hi, i'm working with that 3 things i mentioned, so my first question is
- what are all these 3 things for (java sax - Xerces - dtd)?, i know
what is SAX but how do i use xcerces and a dtd for parsing?, let me
explain myself, i'm doing a parser to read a file called for example:
out.xml this could use a dtd archive called: out.dtd, and i have to
recover all the information (plain text to put the info into a java
BEAN object) from out.xml, i don't know how to use the DTD file or if i
need to use it in my project, and i would be apreciate a lot if
somebody post me a link to find an example of how to parse a xml
file.thanks
 
J

Joe Kesselman

- what are all these 3 things for (java sax - Xerces - dtd)

Any good XML introduction should answer most of these questions.
Standard pointer to the tutorials and articles on
http://www.ibm.com/xml

SAX is a Java API for parsing XML. See
http://www.saxproject.org/
http://www.w3.org/DOM/faq.html#SAXandDOM

Xerces is the Apache XML parser. It's available in Java and C++
versions, and an older version ships with most JVMs these days. It
supports the SAX, DOM, JAXP, and TrAX APIs. See
http://xerces.apache.org/

DTD -- Document Type Definition -- is a meta-language that lets you
describe what documents are and aren't valid. DTDs are slowly being
phased out in favor of XML Schemas, which are a more powerful way of
doing the same thing. If you don't know what you need a DTD or schema
for, you probably don't need one yet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top