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

RE: XML validation

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: 'yimin zhu' <yiminz@t...>
  • Date: Fri, 22 Sep 2000 12:49:48 -0600

xml no protocol
The example you gave involved Microsoft's XDR schema language use of using namespace identifiers to bind documents to schema resources.  To the best of my knowledge, there is no ability in the
Microsoft MSXML Parsers to interact with the resolution of the XDR schema other than that provided in the platform and there are no other parsers available or anticipated that support XDR.  You may be
able to write a pluggable URL resolution protocol that would be used to resolve any URL reference and MSXML would probably use that to find the schema resource.  Basically, you would use a value like
"x-schema:timberline://ourschemas/bookschema.xdr" for xmlns and write and register a protocol handler for the "timberline" protocol.


The W3C XML Schema working draft's sections on locating schema resources is written from a perspective that dereferencing a URL in the instance document is the least likely mechanism of getting a
schema.  The more likely mechanism is this that a document will be validated against the schema the receiver anticipates instead of against the schema that the document asserts to which it conforms.

Since the XML Schema draft does not address parser API's how this is done in different parsers will probably vary.  However, you would expect that the complete implementations of XML schema will
provide the application a notification that it needs a schema resource for a particular namespace and any location hints from the instance, the application could then provide an alternative schema
resource.

I do not know if this behavior is currently available in any of the XML Schema implementations.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.