Getting "Visual Studio could not locate a schema for this document
From: Matt_T (Matt_T_at_discussions.microsoft.com)
Date: 07/29/04
- Next message: Budman: "Re: Problem with XMLValidatingReader"
- Previous message: Zafar Abbas [MSFT]: "Re: Problem with XMLValidatingReader"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Jul 2004 14:23:13 -0700
I am currently working on setting up a XML Schema for a set of rather simple documents. However, Visual Studio .Net 2003 (Version 7.1.3088) is unable to find the Schema file. I have included the "xsi:schemaLocation" attribute in the root element and pointed it to the schema file. Unfortunately, it still does not find the schema file.
Here is the top sections of both the XML and XSD files:
==============
XML
==============
<?xml version="1.0" encoding="utf-8" ?>
<?xml-style*** type='text/xsl' href='./simple_render.xsl'?>
<wizardPage id="template"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:SupportWiz"
xsi:schemaLocation="urn:SupportWiz file:///d:/share/project%20files/SupportWiz.xsd"
type="singleVariable"
defaultVariableName=""
defaultNextPage=""
autonext="false"
createdOn=""
createdBy=""
>
<documents defalutLanguage="english">
<document language="english">
English doc goes here.
</document>
<document language="french">
French doc goes here.
</document>
</documents>
==============
XSD
==============
<?xml version="1.0" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:SupportWiz"
xmlns="urn:SupportWiz"
elementFormDefault="qualified"
>
<xs:element name="wizardPage">
<xs:complexType>
<xs:sequence>
<xs:element name="documents" minOccurs="1" maxOccurs="1" nillable="false">
<xs:complexType>
<xs:sequence>
<xs:element name="document" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="language" form="unqualified" type="supportedLanguages" default="english" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="defalutLanguage" form="unqualified" type="supportedLanguages" default="english" />
</xs:complexType>
</xs:element>
- Next message: Budman: "Re: Problem with XMLValidatingReader"
- Previous message: Zafar Abbas [MSFT]: "Re: Problem with XMLValidatingReader"
- Messages sorted by: [ date ] [ thread ]