Hi,

On Thu, 6 May 2004, Heeg, Michael wrote:

> 1) On page http://xml.apache.org/xerces-c/schema.html there is an
> easy-to-understand example for parsing instance documents with external
> schemas. But: here the class DOMParser is used, and not DOMBuilder. Is it
> possible to validate an instance document with an external schema also with
> DOMBuilder? If yes, how?

You can use the same method, take a t look at the supported properties.

http://xml.apache.org/xerces-c/program-dom.html#DOMBuilderProperties

> 2) I think this is an absolutely newbie question: What is the difference
> between DOMParser and DOMBuilder? The documentation of Xerces-C API says:
> "DOMBuilder provides an API for parsing XML documents and building the
> corresponding DOM document tree." So DOMBuilder is a parser, too, isn't it?

Until DOM Level 3, there was no definition of what a DOM Parser should be
so Xerces had its own. Now the Load and Save specs define one. That is DOM
Builder. We are a touch behind, the final name decided on was LSParser.
This will change at some point in the future when we catch up.


Gareth

-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to