473,473 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Validating XML In Visual Studio.NET 2003 problem.

Hi all,

I have an XSD file in a web directory in "C:\inetpub\wwwroot\xsd\Test.xsd".
This maps to http://localhost/xsd/Test.xsd. I have tried this URL in
Internet Explorer and the file loads fine.

I have opened an XML file in Visual Studio.NET 2003. I have added
"http://localhost/xsd/Test.xsd" to the targetSchema property and it has
added an xmlns="http://localhost/xsd/Test.xsd" to the root of my XML
document.

Finally I select XML/Validate XML Data from the menu. Visual Studio then
tells me "Visual Studio could not locate a schema for this document.
Validation can only ensure this is a well formed XML document and cannot
validate the data against a schema."

I don't understand why it can't find it. Can anyone help.

Thanks

Martin
Nov 12 '05 #1
1 4204


Martin Brown wrote:
Hi all,

I have an XSD file in a web directory in "C:\inetpub\wwwroot\xsd\Test.xsd".
This maps to http://localhost/xsd/Test.xsd. I have tried this URL in
Internet Explorer and the file loads fine.

I have opened an XML file in Visual Studio.NET 2003. I have added
"http://localhost/xsd/Test.xsd" to the targetSchema property and it has
added an xmlns="http://localhost/xsd/Test.xsd" to the root of my XML
document.

Finally I select XML/Validate XML Data from the menu. Visual Studio then
tells me "Visual Studio could not locate a schema for this document.
Validation can only ensure this is a well formed XML document and cannot
validate the data against a schema."

I don't understand why it can't find it. Can anyone help.


The schema is located by the xsi:schemaLocation attribute and not by any
namespace.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: chris mancini | last post by:
I have recently installed Visual Studio .Net 2003 and have noticed that there are problems with formatting in the HTML code page. If I format the HTML the way I want and navigate back to design...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
6
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: ...
4
by: Hawkmoth | last post by:
Hi I hope you can help with what seems to be a simple problem that is driving me nuts! I am developing a C# application using Visual studio 2003 and I need to use Office 2003 automation. In...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
3
by: robin9876 | last post by:
Is it possible to install Visual Studio 2003 and 2005 on the same pc?
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.