validate XSDs thro' Visual Studio .NET which references some other schemas

validate XSDs thro' Visual Studio .NET which references some other schemas

Post by Raj J via » Mon, 28 Jun 2004 03:50:37


(Type your message here)

--------------------------------
From: Raj

Guys,
Iam trying to validate XSDs thro' Visual Studio .NET and the schema Iam validating references some other schemas which are stored in our local webserver

Example
<xs:schema targetNamespace=" http://www.yqcomputer.com/ " elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs=" http://www.yqcomputer.com/ " xmlns=" http://www.yqcomputer.com/ ">
<xs:include schemaLocation="http://localhost/Resources/Verbs/Add.xsd"/>
<xs:include schemaLocation="http://localhost/Resources/Nouns/SalesOrder.xsd"/>

When I do the validation, it throws an error - Schema reference "http://localhost/Resources/Nouns/SalesOrder.xsd" is not a valid reference or does not exist in the current project.
When I do the validation through XMLSpy , it works perfectly but its just in Visual Studio that Iam not able to validate schema referencing other schemalocations.
Should I add any references to my schemas stored in the local website?How?

Thanks

-----------------------
Posted by a user from AdminLife ( http://www.yqcomputer.com/ )

<Id>leB6QUWQQUu4tmQOenAsrA==</Id>
 
 
 

validate XSDs thro' Visual Studio .NET which references some other schemas

Post by Eldar_Musa » Thu, 01 Jul 2004 00:24:19

Did you checked that URL http://localhost/Resources/Nouns/SalesOrder.xsd
works in your browser?
Also try to load your document with validation using both MSXML 4.0 or
System.Xml - I suspect there may be something wrong with the schema itself,
XMLSpy is occasionally lax on some complicated restrictions.

If it does not help, please, repost into appropriate group devoted
specifically to XML (like microsoft.public.xml), they may be able to help.
Including beginning of the file
http://localhost/Resources/Nouns/SalesOrder.xsd may help too.

Regards,
Eldar


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

EBusiness Server Team
--------------------
other schemas
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13
.phx.gbl
validating references some other schemas which are stored in our local
webserver
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:xs=" http://www.yqcomputer.com/ " xmlns=" http://www.yqcomputer.com/ ">
schemaLocation="http://localhost/Resources/Nouns/SalesOrder.xsd"/>
"http://localhost/Resources/Nouns/SalesOrder.xsd" is not a valid reference
or does not exist in the current project.
just in Visual Studio that Iam not able to validate schema referencing
other schemalocations.
website?How?

 
 
 

validate XSDs thro' Visual Studio .NET which references some other schemas

Post by tatyana » Thu, 01 Jul 2004 00:48:27

All the referenced schemas have to be saved locally and added to the project.
You can not refer to schemas on a webserver.

After adding schemas to the project you need to change schemaLocation at the xs:include, xs:import or xs:redefine.

(Do you want BizTalk Server to go to some web site and download the schemas every time it received new message? What if the web site is down? What if schema
changed dramatically and other BizTalk artifacts (maps, orchestrations) can not work with the new schema? The system will become unmanagable because you don't know
how the schema looks like at any particular point.)

Thanks
Tatyana

--------------------
xmlns:xs=" http://www.yqcomputer.com/ " xmlns=" http://www.yqcomputer.com/ ">
current project.


--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.yqcomputer.com/

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.