W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2003

Re: Validate XML without URL to Schema

From: <noah_mendelsohn@us.ibm.com>
Date: Wed, 18 Jun 2003 18:17:30 -0400
To: Christoph Metzendorf <Christoph.Metzendorf@ptv.de>
Cc: xmlschema-dev@w3.org
Message-ID: <OF6ACF3273.C18240F6-ON85256D49.007A327D@lotus.com>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC