473,320 Members | 2,071 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,320 software developers and data experts.

XSD.EXE issue

Hi Folks,

I was trying to import this schema using XSD.EXE tool. After the import into
a C# file, i created an object of type "result" and tried to serialize it to
XML file. This causes an exception to be thrown.

Please could some one let me know what the issue is?

Thanks and Regards,
~ Kapil Joshi (PSPL)

--------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
id="result"
xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

<xs:element name="choice" nillable="true">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="choice_Text" msdata:Ordinal="0">
<xs:extension base="xs:string">
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="result" msdata:IsDataSet="true"
msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="choice" />
<xs:element name="video_template">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0" />
<xs:element name="summary" type="xs:string" minOccurs="0" />
<xs:element name="details" type="xs:string" minOccurs="0" />
<xs:element name="year" type="xs:string" minOccurs="0" />
<xs:element name="director" type="xs:string" minOccurs="0" />
<xs:element name="studio" type="xs:string" minOccurs="0" />
<xs:element name="runtime" type="xs:string" minOccurs="0" />
<xs:element name="vhs" type="xs:string" minOccurs="0" />
<xs:element name="vhs_stock" type="xs:string" minOccurs="0" />
<xs:element name="dvd" type="xs:string" minOccurs="0" />
<xs:element name="dvd_stock" type="xs:string" minOccurs="0" />
<xs:element name="beta" type="xs:string" minOccurs="0" />
<xs:element name="beta_stock" type="xs:string" minOccurs="0" />
<xs:element name="laserdisk" type="xs:string" minOccurs="0" />
<xs:element name="laserdisk_stock" type="xs:string"
minOccurs="0" />
<xs:element name="genre" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="choice" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="rating" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="choice" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="user_rating" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="choice" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="actors">
<xs:complexType>
<xs:sequence>
<xs:element name="actor" nillable="true" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="actor_Text"
msdata:Ordinal="1">
<xs:extension base="xs:string">
<xs:attribute name="id" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="videos">
<xs:complexType>
<xs:sequence>
<xs:element name="video" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0"
msdata:Ordinal="0" />
<xs:element name="genre" type="xs:string" minOccurs="0"
msdata:Ordinal="1" />
<xs:element name="rating" type="xs:string" minOccurs="0"
msdata:Ordinal="2" />
<xs:element name="summary" type="xs:string"
minOccurs="0" msdata:Ordinal="3" />
<xs:element name="details" type="xs:string"
minOccurs="0" msdata:Ordinal="4" />
<xs:element name="year" type="xs:string" minOccurs="0"
msdata:Ordinal="5" />
<xs:element name="director" type="xs:string"
minOccurs="0" msdata:Ordinal="6" />
<xs:element name="studio" type="xs:string" minOccurs="0"
msdata:Ordinal="7" />
<xs:element name="user_rating" type="xs:string"
minOccurs="0" msdata:Ordinal="8" />
<xs:element name="runtime" type="xs:string"
minOccurs="0" msdata:Ordinal="9" />
<xs:element name="vhs" type="xs:string" minOccurs="0"
msdata:Ordinal="11" />
<xs:element name="vhs_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="12" />
<xs:element name="dvd" type="xs:string" minOccurs="0"
msdata:Ordinal="13" />
<xs:element name="dvd_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="14" />
<xs:element name="beta" type="xs:string" minOccurs="0"
msdata:Ordinal="15" />
<xs:element name="beta_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="16" />
<xs:element name="LaserDisk" type="xs:string"
minOccurs="0" msdata:Ordinal="17" />
<xs:element name="LaserDisk_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="18" />
<xs:element name="laserdisk" type="xs:string"
minOccurs="0" msdata:Ordinal="19" />
<xs:element name="laserdisk_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="20" />
<xs:element name="actorRef" nillable="true"
minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="actorRef_Text"
msdata:Ordinal="0">
<xs:extension base="xs:string">
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
Jan 31 '06 #1
1 1621
cd~
I found a posted bug in product feed back for this:
http://lab.msdn.microsoft.com/produc...9-4fd917833043

There is a work around posted there for this.

-R

"Kapil Joshi" <Ka********@discussions.microsoft.com> wrote in message
news:65**********************************@microsof t.com...
Hi Folks,

I was trying to import this schema using XSD.EXE tool. After the import
into
a C# file, i created an object of type "result" and tried to serialize it
to
XML file. This causes an exception to be thrown.

Please could some one let me know what the issue is?

Thanks and Regards,
~ Kapil Joshi (PSPL)

--------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
id="result"
xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

<xs:element name="choice" nillable="true">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="choice_Text" msdata:Ordinal="0">
<xs:extension base="xs:string">
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="result" msdata:IsDataSet="true"
msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="choice" />
<xs:element name="video_template">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0" />
<xs:element name="summary" type="xs:string" minOccurs="0" />
<xs:element name="details" type="xs:string" minOccurs="0" />
<xs:element name="year" type="xs:string" minOccurs="0" />
<xs:element name="director" type="xs:string" minOccurs="0" />
<xs:element name="studio" type="xs:string" minOccurs="0" />
<xs:element name="runtime" type="xs:string" minOccurs="0" />
<xs:element name="vhs" type="xs:string" minOccurs="0" />
<xs:element name="vhs_stock" type="xs:string" minOccurs="0"
/>
<xs:element name="dvd" type="xs:string" minOccurs="0" />
<xs:element name="dvd_stock" type="xs:string" minOccurs="0"
/>
<xs:element name="beta" type="xs:string" minOccurs="0" />
<xs:element name="beta_stock" type="xs:string" minOccurs="0"
/>
<xs:element name="laserdisk" type="xs:string" minOccurs="0"
/>
<xs:element name="laserdisk_stock" type="xs:string"
minOccurs="0" />
<xs:element name="genre" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="choice" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="rating" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="choice" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="user_rating" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="choice" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="actors">
<xs:complexType>
<xs:sequence>
<xs:element name="actor" nillable="true" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="actor_Text"
msdata:Ordinal="1">
<xs:extension base="xs:string">
<xs:attribute name="id" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="videos">
<xs:complexType>
<xs:sequence>
<xs:element name="video" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0"
msdata:Ordinal="0" />
<xs:element name="genre" type="xs:string" minOccurs="0"
msdata:Ordinal="1" />
<xs:element name="rating" type="xs:string"
minOccurs="0"
msdata:Ordinal="2" />
<xs:element name="summary" type="xs:string"
minOccurs="0" msdata:Ordinal="3" />
<xs:element name="details" type="xs:string"
minOccurs="0" msdata:Ordinal="4" />
<xs:element name="year" type="xs:string" minOccurs="0"
msdata:Ordinal="5" />
<xs:element name="director" type="xs:string"
minOccurs="0" msdata:Ordinal="6" />
<xs:element name="studio" type="xs:string"
minOccurs="0"
msdata:Ordinal="7" />
<xs:element name="user_rating" type="xs:string"
minOccurs="0" msdata:Ordinal="8" />
<xs:element name="runtime" type="xs:string"
minOccurs="0" msdata:Ordinal="9" />
<xs:element name="vhs" type="xs:string" minOccurs="0"
msdata:Ordinal="11" />
<xs:element name="vhs_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="12" />
<xs:element name="dvd" type="xs:string" minOccurs="0"
msdata:Ordinal="13" />
<xs:element name="dvd_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="14" />
<xs:element name="beta" type="xs:string" minOccurs="0"
msdata:Ordinal="15" />
<xs:element name="beta_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="16" />
<xs:element name="LaserDisk" type="xs:string"
minOccurs="0" msdata:Ordinal="17" />
<xs:element name="LaserDisk_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="18" />
<xs:element name="laserdisk" type="xs:string"
minOccurs="0" msdata:Ordinal="19" />
<xs:element name="laserdisk_stock" type="xs:string"
minOccurs="0" msdata:Ordinal="20" />
<xs:element name="actorRef" nillable="true"
minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="actorRef_Text"
msdata:Ordinal="0">
<xs:extension base="xs:string">
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

Feb 1 '06 #2

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

Similar topics

3
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
7
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
1
by: AlekseyUS | last post by:
Hi, I'm a little stuck, I basically need to copy all the information within a specific file in Temp and append it to a file in another location. I'm not having any problems with smaller size...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.