RE: Schema embedded in an XML document

Xerces-J also supports inline schemas though there's no magic flag for
enabling it. You need to write some glue code as shown in one of the
samples [1].

[1]
http://xerces.apache.org/xerces2-j/samples-jaxp.html#InlineSchemaValidator

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Stan.Kitsis@microsoft.com wrote on 04/22/2009 02:17:56 PM:

> Current validators from Microsoft (both system.xml and MSXML)
> support inline schemas:
http://msdn.microsoft.com/en-us/library/aa302288.aspx
> However, I think that the majority of the validators out there don?t
> support them and even if you look at those that do, you might find
> significant differences.
>
> Stan Kitsis
> Microsoft Corporation
>
> From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]
> On Behalf Of Rowan Bradley
> Sent: Wednesday, April 22, 2009 7:38 AM
> To: xmlschema-dev@w3.org
> Subject: Schema embedded in an XML document
>
> Is it possible to incorporate the schema in a single file along with
> the XML content that?s meant to conform to the schema? I?m thinking
> of something rather like HTML files that can incorporate embedded
> CSS styles, or the CSS files can be extracted into a separate CSS file.
> Thanks - Rowan

Received on Friday, 24 April 2009 04:27:27 UTC