473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error loading schema: a bug???

I everybody,

when i try to load in a dataset an xml schema with ReadXmlSchema method, the
framework validator throws an error. The schema is divide in 3 files. The
main one "scheda_full.xsd" include the other "definizioni.xsd" and
"tipi_dati.xsd" which contain various definitions.

I try to validate the schema with many tools like xmlspy and it seems to be
valid.

If someone want to help me, I provide xsd files at

http://www.meo.it/schema_full.xsd
http://www.meo.it/DEFINIZIONI/definizioni.xsd
http://www.meo.it/DEFINIZIONI/tipi_dati.xsd

Thanks.
LM
Nov 12 '05 #1
4 2786
* ElleEmme wrote in microsoft.public.dotnet.xml:
when i try to load in a dataset an xml schema with ReadXmlSchema method, the
framework validator throws an error.


Could you quote the error message?
Nov 12 '05 #2
"An unhandled exception of type 'System.Data.DataException' occurred in
system.data.dll
Additional information: undefined type: 'str1'."

simpleType str1 is declared on third file (tipi_dati.xsd). It seems,
framework validator cannot see those declarations, but for sure it parse the
second and the third file!

Thanks in advance for your interest.

LM

"Bjoern Hoehrmann" <bj****@hoehrmann.de> ha scritto nel messaggio
news:3f****************@news.bjoern.hoehrmann.de.. .
* ElleEmme wrote in microsoft.public.dotnet.xml:
when i try to load in a dataset an xml schema with ReadXmlSchema method, theframework validator throws an error.


Could you quote the error message?

Nov 12 '05 #3
"Token" is a primitive Xml Schema type...
I am guessing that your namesapces are hooked up wrong. The "token" item
probably doesn't have "xs:" or "xsd:" before it?

Steven
Founder, http://venturetogether.com
"Kevin Johnson" <ks*******@aghlc.com> wrote in message
news:42**********************************@microsof t.com...
I am having a similar problem. I receive the following error when attempting to use the ReadXmlSchema function on a DataSet:
An unhandled exception of type 'System.Data.DataException' occurred in system.data.dll
Additional information: Undefined data type: 'token'.

'token' is defined in a different xsd file that gets included (xsd:include) into the xsd file I pass into the ReadXmlSchema function.
Were you able to resolve this issue?

Thanks,
Kevin

Nov 12 '05 #4
Thanks for the input. I noticed to that token is a derived/primitive type. I went through each XSD file that gets included into the the "main" XSD file. I didn't notice any areas where the "token" was being used without proper declaration.

For another experiment, I used the ReadXmlSchema DataSet function on each of the component XSD files. Each of them read into the DataSet just fine. It only gives me an error when I try to load the "main" XSD file that has all thee includes in it.

I'll keep researching the issue and let you know if I come up with anything.

Thanks for the help!!!
Nov 12 '05 #5

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

Similar topics

0
by: Eric Promislow | last post by:
Has anyone else run into this? The problem is that I'm loading one schema at a time, to be displayed in a TreeView. Each node in the tree points to an item in the schema via the Tag property. ...
0
by: Ron James | last post by:
When loading an XmlSchemaCollection with a corrupted .XSD file I get an XmlSchemaException thrown with a helpful Message such as "The following text is not allowed in this context: XXX. An error...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
0
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'...
5
by: azgoddess1 | last post by:
During the installation I get these error messages: ***** SQL1390C The environment variable DB2Instance is not defined or is invalid An error ocured while loading the command "C:\Program...
1
by: Cesar | last post by:
Hello, I've developed a .NET C# web service; which has one method named, let's say, upload_your_data. This method has one parameter ( string your_data). The value that this parameter will...
1
by: aj | last post by:
DB2 WSUE LUW v8.2 FP4 (aka v8.1 FP11) RHEL AS 4 I am EXPORTing in IXF format from one schema and then LOADing into another schema. The DB modeling tool I am using likes to put the PK columns...
0
by: Ganesh Muthuvelu | last post by:
Hello, What is wrong with this simple schema. When I try to load it to a dataset it gives me an error, "Data type not defined" Thanks. ****************************** <?xml version="1.0"...
1
by: =?Utf-8?B?TWFuaXNoIEJhZm5h?= | last post by:
Hi, I am getting following error while validating xml file with schema using ReaderSettings in .NET 2.0 "Line: 0 - Position: 0 - The root element of a W3C XML Schema should be <schemaand its...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.