[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Schema embedded in an XML document

From: Pete Cordell <petexmldev@codalogic.com>
Date: Wed, 22 Apr 2009 17:04:07 +0100
Message-ID: <73E2DCE6D4354143A0F241A5260EC231@Codalogic>
To: "Rowan Bradley" <rowan.bradley@herbertgroup.com>, <xmlschema-dev@w3.org>
Re: Schema embedded in an XML document
As an XML schema is just XML it's quite possible to include an XML schema 
into an instance document.  For example, WSDL is an example of a schema 
being included into an XML instance.

However, such a schema won't automatically be considered to be the schema 
for the instance that it's contains in.  You'll have to add external logic 
to do that.

And, without knowing further details, I'm not sure it's a sensible thing to 
do.  Schemas tend to be larger than instances thereof, and it seems to be 
the wrong place to specify a contract.

HTH,

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ for more info

----- Original Message ----- 
From: "Rowan Bradley" <rowan.bradley@herbertgroup.com>
To: <xmlschema-dev@w3.org>
Sent: Wednesday, April 22, 2009 3:38 PM
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 Wednesday, 22 April 2009 16:12:51 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.