473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

java sax parser + XERCES + dtd

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

Aug 23 '06 #1
1 2150
om*****@gmail.com wrote:
- 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.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Aug 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John | last post by:
I have been trying with no result, to force Xerces parsers to ignore whitespace in my XML file. I have tried several of the NG suggested setFeature() methods in DOMParser to no avail. I have now...
0
by: Pud | last post by:
Hiya, I was wondering if anyone could help me, I am trying to create an example program that uses the xerces XML parser in Java. Unfortunately I have come across a problem when using this...
4
by: Venkata Ramana Kala | last post by:
Can any one please let me know where to start from and code xml in java and vb? please suggest me some good sites and books to start with(from scratch to advanced). I would like to get the exact...
5
by: Aleksandar Matijaca | last post by:
Hi there, I am in some need of help. I am trying to parse using the apache sax parser a file that has vaid UTF-8 characters - I keep end up getting a sun.io.MalformedInputException error. ...
2
by: Dale Gerdemann | last post by:
I'm having trouble with Unicode encoding in DOM. As a simple example, I read in a UTF-8 encoded xml file such as: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <aText>letter 'a' with...
1
by: Jens Mueller | last post by:
Hi there, this is a Java-XML Question, so I am not sure whether this is the right place, haven't found anything better .... I try to convert a Java object to XML via SAX and let the FOP...
1
by: Ethel | last post by:
I want to use a validating XML parser on my machine. I downloaded Xerces2 Java Parser 2.8.0 Release binary files, which includes the documentation. Unfortunately I can't find any instructions on...
1
by: Sidhartha | last post by:
Hi, I am facing a problem while parsing local language characters using sax parser. We use DOM to parse and SAX to read the source. But when our application parses strings with local language...
7
by: svpriyan | last post by:
Dear Buddies, I have two Java Prog: My task is to read the Content of the file and write to an XML file. so i started doing it perfectly... What i have problem is when i tried to execute the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.