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

RE: Interesting mailing list & a rare broadside

  • To: "James Clark" <jjc@j...>,<xml-dev@l...>
  • Subject: RE: Interesting mailing list & a rare broadside
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Fri, 7 Jun 2002 19:59:59 -0700
  • Thread-index: AcIMXF1YfzPucBHFTXqPiuJJ3S+z8QCO7rIQ
  • Thread-topic: Interesting mailing list & a rare broadside

RE:  Interesting mailing list & a rare broadside
> -----Original Message-----
> From: James Clark [mailto:jjc@j...] 
> Sent: Tuesday, June 04, 2002 11:41 PM
> To: Dare Obasanjo; xml-dev@l...
> Subject: Re:  Interesting mailing list & a rare broadside
> 
> 
> Thanks! I am glad to hear MSXML allows this to be detected.
> 
> Now suppose I change example.xml to:
> 
> <bar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:noNamespaceSchemaLocation="bar.xsd"/>
> 
> where bar.xsd is:
> 
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 
> <xs:element name="bar">
>   <xs:complexType/>
> </xs:element>
> 
> </xs:schema>
> 
> Is there also some way to tell MSXML not to allow the 
> instance to provide additional schemas so that this would be 
> detected as invalid as well?
> 

Oops, forgot to answer this. 

Since xsi:noNamespaceSchemaLocation is a hint, it can be ignored at the
discretion of the implementation. MSXML ignores the namespace location
in the instance document if 

A.) No validation is requested by the user either via setting
validateOnParse property or invoking the validate() method.

OR 

B.) A schema is provided by the user via an XML Schema Cache for
validating the document. 

-- 
PITHY WORDS OF WISDOM 
The shortest distance between two points is under repair.

This posting is provided "AS IS" with no warranties, and confers no
rights. 



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.