> >          that is what the parser does if validation is off/ there is no
> > reference to a DTD.
>
>
> Ok, and to enable this, do I call something like this:
>
> parser->setValidationScheme( AbstractDOMParser::Val_Always );

No, you don't need to do that.  Checked that a document is well-formed is
something the parser _always_ does.  You are confusing that with validation
-- the two are not related in any way.

> Is that all that's required?  Also, if the document isn't valid, will it
> just throw an exception?

No, you will want to install an ErrorHandler instance so you can discover
what's going on.  Look at any of the sample programs for more information,
or consider using the class HandlerBase.  When a document is not
well-formed, errors are reported through ErrorHandler::fatalError().

Dave


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

Reply via email to