OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Interesting mailing list & a rare broadside

[ Lists Home | Date Index | Thread Index ]
  • To: "James Clark" <jjc@jclark.com>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] Interesting mailing list & a rare broadside
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Fri, 7 Jun 2002 19:59:59 -0700
  • Thread-index: AcIMXF1YfzPucBHFTXqPiuJJ3S+z8QCO7rIQ
  • Thread-topic: [xml-dev] Interesting mailing list & a rare broadside

> -----Original Message-----
> From: James Clark [mailto:jjc@jclark.com] 
> Sent: Tuesday, June 04, 2002 11:41 PM
> To: Dare Obasanjo; xml-dev@lists.xml.org
> Subject: Re: [xml-dev] 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.


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

The shortest distance between two points is under repair.

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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS