First, an XML parser is not a validator per say. It does check for a
well formed document and, some (not all), have the ability to validate
documents against a DTD/Schema. The DOM (Document Object Model) is a
universal API (Aplication Programmers Interface) for accessing the data of
documents (mostly used for XML at this juncture). SAX is a simplified
version of the DOM (and in cases is the better option for accessing the
documents data).
Now, dealing with the location of error message display: it depends.
Truthfully, the errors can be printed to where you need them, it is a
programming issue.
Why is it important to use the DOM/SAX/Parser? They provide a common
interface for manipulating and accessing documents (not just XML). However,
currently they are used mostly for XML documents.
--Brian Curtis
-----Original Message-----
From: Paul Williams [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 19, 2000 3:46 AM
To: [EMAIL PROTECTED]
Subject: Parsers, DOM & SAX
To: [EMAIL PROTECTED]
Hello again.
This time i'm back to ask about the above subject matter.
OK. A Parser is there to validate an XML document, make sure all the tags
are
in place etc. Now, what exactly and in "Lamen terms" do the DOM and SAX
do?.
I know there in there to perform more validation?, read & write from server
to
Internet (SAX)?
But How, and what other functionality do they have?.
Why is it important to use them?
How/Where are error messages displayed?
Again I apologise in advance if these questions appear to be simple?
May I also say thank-you to all the those who have helped me so far.
Cheers
Paul Williams
------ XML/edi Group Discussion List ------
Homepage = http://www.XMLedi-Group.org
Unsubscribe = send email to: [EMAIL PROTECTED]
Leave the subject and body of the message blank
Questions/requests: [EMAIL PROTECTED]
To receive only one message per day (digest format)
send the following message to [EMAIL PROTECTED],
(leave the subject line blank)
digest xmledi-group your-email-address
To join the XML/edi Group complete the form located at:
http://www.xmledi-group.org/xmledigroup/mail1.htm
------ XML/edi Group Discussion List ------
Homepage = http://www.XMLedi-Group.org
Unsubscribe = send email to: [EMAIL PROTECTED]
Leave the subject and body of the message blank
Questions/requests: [EMAIL PROTECTED]
To receive only one message per day (digest format)
send the following message to [EMAIL PROTECTED],
(leave the subject line blank)
digest xmledi-group your-email-address
To join the XML/edi Group complete the form located at:
http://www.xmledi-group.org/xmledigroup/mail1.htm