473,503 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Schema Valdiation error

I try to validate a complex schema using XSD and I get a series of errors of the following format:

Validation Error:'http://xml.msdw.com/ns/mdco/data/1.0:tradeSymbol' cannot be a member of substitution group with head element 'http://xml.msdw.com/ns/mdco/xml/2.0:abstractIdentifier'.
An error occurred at file:///c:/mdco_data_1.0.xsd, (48, 3). Severity:Error

This schema was generated with XML Spy and no validation error were generater there.
How shall I interpret this error - a violation of the XML Schema spec or a problem with the XSD.EXE?
I am currently running on version 1.1 of the .NET Framework (v1.1.4322 to be more precise)

Thank you for your help

Nov 12 '05 #1
2 1339
Hi,

Is the type of tradeSymbol derived from the type of abstractIdentifier (or
do they have the same type?). That must be the case in order to use
substitution groups.

In general, I wouldn't necessarily assume that a schema is valid because
XMLSpy doesn't raise any errors. There are a number of fine points of XML
Schema that XMLSpy doesn't implement 100% correctly.

Hope that helps,
Priscilla
------------------------------------------------------------------
Priscilla Walmsley
Author, Definitive XML Schema / XML in Office 2003
http://www.datypic.com
------------------------------------------------------------------
Nov 12 '05 #2
Hi,

Is the type of tradeSymbol derived from the type of abstractIdentifier (or
do they have the same type?). That must be the case in order to use
substitution groups.

In general, I wouldn't necessarily assume that a schema is valid because
XMLSpy doesn't raise any errors. There are a number of fine points of XML
Schema that XMLSpy doesn't implement 100% correctly.

Hope that helps,
Priscilla
------------------------------------------------------------------
Priscilla Walmsley
Author, Definitive XML Schema / XML in Office 2003
http://www.datypic.com
------------------------------------------------------------------
Nov 12 '05 #3

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

Similar topics

0
4202
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
0
1705
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
0
343
by: nepo | last post by:
I try to validate a complex schema using XSD and I get a series of errors of the following format: Validation Error:'http://xml.msdw.com/ns/mdco/data/1.0:tradeSymbol' cannot be a member of...
4
2479
by: Iain A. Mcleod | last post by:
Hi I'm stuck with the following schema validation problem in VS.NET 2003: I have two types of xml document and related schema: project and projectCollection. A projectcollection is just a set...
3
6033
by: Shailendra Batham | last post by:
hi guys I need your suggestions / opinion for doing this the right way. I have a XML and a Schema for the same What I want is when its validated against the schema, it should give custom...
0
4661
by: Harold Putman | last post by:
The XmlValidatingReader seems to have changed drastically in .Net Frameworks 1.0 SP3 and beyond with regards to validating XML files that are XML Schemas. Consider the following code: ---...
0
1557
by: Deep Purple | last post by:
I started with the following error... ------------------------------------------------------- An error occured while loading the schema with TargetNamespace 'http://www.w3.org/2001/XMLSchema'...
2
981
by: Eldon Ferran de Pol | last post by:
Hi all, I've got a CompareValidator comparing the value of one drop down against another this works without any problems except that whenever another control on my page with AutoPostBack set to...
4
7720
by: Stan R. | last post by:
Hello, I have xmllint and xsltproc installed and running on both my linux and win32 platforms, all seems good. I have a couple questions though. 1) If I have an external dtd file, which is...
0
7203
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
7089
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
7339
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
7463
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
5581
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,...
0
3168
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
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
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 ...
1
738
muto222
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.