473,761 Members | 7,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.xs d" include the other "definizioni.xs d" 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 2807
* ElleEmme wrote in microsoft.publi c.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.Da taException' 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****@hoehrma nn.de> ha scritto nel messaggio
news:3f******** ********@news.b joern.hoehrmann .de...
* ElleEmme wrote in microsoft.publi c.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*******@aghl c.com> wrote in message
news:42******** *************** ***********@mic rosoft.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.Da taException' 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
1541
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. When I load the second schema, the collection of SchemaTypes.Values still contains the first schema's types. This doesn't happen when I write schemas to the console. I'm explicitly clearing the Tag property on each node in the tree before I...
0
1147
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 occurred at File:<filename> (10,35)" with 10,35 being the row and column of the offending characters. However, when using XmlValidatingReader to deserialize a similarly corrupted .XML file, I get and InvalidOperationException thrown with the...
5
3820
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 ) Person.xsd includes Common-Naming.xsd ( anonimous schemas ) Common-Naming.xsd includes common.xsd ( both are anonimous schemas ) Compilation of Resident.xsd raise the following exception: "System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
0
1577
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' referenced in this document. The value for the 'base' attribute is invalid - 'xsd:string' is an invalid value for the 'base' attribute. An error occured at the file:///C:Program Files/Microsoft Visual Studio .NET 2003...
5
7823
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 Files\IBM\SQLLIB\bin\db2.exe CREATE TOOLS CATALOG SYSTOOLS USE EXISITING DATABASE DWCTRLDB FORCE" to initialize and\or migrate the DB2 tools catalog database. The return value is "5104".
1
649
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 actually have is the content of a XML document. This data will be processed and check for a well-formed xml document and will be validated against a XSD. Before putting my code, let me go on and explain the whole situation. This web method is invoked...
1
1832
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 at the very top of the CREATE TABLE ddl, so the ordering of the columns in the FROM schema is different from the ordering in the TO schema. All of the columns are there named the same way, just different order.
0
2727
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" encoding="utf-8"?> <xs:schema xmlns:tns="http://tempuri.org" targetNamespace="http://tempuri.org"
1
10403
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 namespace should be 'http://www.w3.org/2001/XMLSchema'." First few lines of xsd file are as follows: <?xml version="1.0" encoding="utf-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.keaneaustralia.com/Nts"...
0
9531
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9957
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9775
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8780
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7332
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3881
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 we have to send another system
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.