Re: Validate XML without URL to Schema

The schema recommendation is written in such a manner that processors are 
free to accept schemas in any form, and in the particular case of schemas 
represented in XML syntax (<xsd:schema> elements), it is mostly silent on 
where those streams come from (it does define an additional level of 
conformance for processors that name Schemas with URIs and use the 
mechanisms of the Web to get them, but that is optional).

Anyway, whether this is actually supported depends on the particular 
parser you use.  Unfortunately, I don't have enough experience with 
particular parser APIs to give you a definitive answer, but I wouldn't be 
suprised that Xerces offer APIs that let you do this. 

------------------------------------------------------------------
Noah Mendelsohn                              Voice: 1-617-693-4036
IBM Corporation                                Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------







Christoph Metzendorf <Christoph.Metzendorf@ptv.de>
Sent by: xmlschema-dev-request@w3.org
06/17/2003 07:20 AM

 
        To:     xmlschema-dev@w3.org
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        Subject:        Validate XML without URL to Schema


I want to store different XML Schemas as string representations inside a 
database. If I'm going to validate a XML document against one of the 
stored schemas, I won't have an URL to the schema, but only its string 
representation. Is it possible in Java to validate the document only with 
the schema as string and how I have to do this?
  
Thanks in advance, 
Christoph 

Received on Wednesday, 18 June 2003 18:18:42 UTC