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

XML document validation using XDR Schema and MSXML.

Subject: XML document validation using XDR Schema and MSXML.
From: "Gale, Paul" <GaleP@xxxxxxxxxxxxx>
Date: Thu, 26 Oct 2000 10:50:39 -0500
xdr validation
Hi,

I have a question about what it means to validate an XML document against an
associated Schema. In my case I am using the September 2000 MSXML parser and
an XDR Schema.

I am using an inline schema in my XML document. Using the example document
shown below, how does the element <ROOT> get validated as it must be
declared before the schema definition is seen? Incidentally when I add some
arbitrary element <dummy> to the document inside <Msg> the document
validation still succeeds even though there is no definition of <dummy> in
the inline schema. Why does the validation succeed? I'd expect the
validation to fail in this case but then I suppose the behaviour is
consistent with the fact the no complaint was raised about <ROOT> either.
What's going on here and what is the flaw (if any) in my reasoning? Is this
a bug in MSXML?

The following document is used as an example:

<?xml version=1.0"?>
<ROOT>
   <Schema name="mySchema" 
           xmlns="urn:schemas-microsoft-com:xml-data"
           xmlns:dt="urn:schemas-microsoft-com:datatypes">
	<!-- schema contents -->
   </Schema>
   <Msg xmlns:FOO="x-schema:#mySchema">
	<MyElements>
		<!-- other child elements -->
	</MyElements>
	<!-- no such element definition in the schema for <dummy> -->
	<Dummy/>
   </Msg>
</ROOT>

thanks,
Paul


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.