Peter, this is such a common question, that perhaps it needs to go into
the Xerces FAQ. Until then, attached is some sample code ...

Regards...

Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
[EMAIL PROTECTED]

----- Original Message -----
From: "Peter Tornberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 12:14 AM
Subject: Schema validation handler.


> Hi,
>
> I want to be able to write a XML parser which validates xml documents
> against some local store of XML Schemas. If the XML document does not
point
> to a schema or the local store does not contain the schema pointed to,
it
> should be handled as an error.
>
> To do this I need some handler/callback to do the work, but still I
want to
> use the regular schema validator if the XML document points to a
schema in
> the local store.
>
> I have read about the EntityResolver, is this the way to do this? Is
there
> any other way?
>
> Code examples would be appreciated.
>
> Thanks!
>
> /Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Attachment: ErrorAndEntityHandling.java
Description: Binary data

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

Reply via email to