- From: Chan, Philip <Philip.Chan@rbccm.com>
- Date: Fri, 7 Dec 2001 09:10:00 -0500
- To: xmlschema-dev@w3.org
- Message-ID: <A2AB950B23E5D411B23C00805FA7BBC80195EF2E@TOTOMB04>
Hi Malia,
You might have to do the programming yourself. This question is more
related to the parser implementation. One way I can think of is to
implement the EntityResolver interface with the following method:
public InputSource resolveEntity(String publicID, String systemID) {
if (systemID.indexOf("xxx.xsd") > 0) {
// then you can do anything you want to do, read the blob and turn it
into the string
return new InputSource(...);
}
}
I don't know if there is other way without programming.
Philip
> -----Original Message-----
> From: Malia Zaheer [SMTP:mzaheer@technicacorp.com]
> Sent: Thursday, December 06, 2001 5:11 PM
> To: xmlschema-dev@w3.org
> Subject: Is it possible to validate XML against an XSD in a database
>
> My problem is this: I want to validate an XML document against an XSD
> that
> is stored in a database as a BLOB. My assumption is that the XSD has to
> be
> in a file system for the XML document to reference it. But, is it
> possible
> to reference an XSD in a database or stored as objects?
>
> Please help!
>
> Thanks,
> Malia
>
Received on Friday, 7 December 2001 09:10:42 UTC