473,569 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to generate schema using XSD.exe tool

Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe "
and uses stuff (classes) from "ClassC.dll ", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDa taCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup .dll") but no dice. Any ideas?

Thanks,
Nate

The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Dec 2 '05 #1
2 3534
You might want to take a look at either XSDObjectGen, or possibly even Dingo,
both of which are respectively more sophisticated than XSD.EXE.

Here's a blog post describing each, that includes links to them:

http://petesbloggerama.blogspot.com/...objectgen.html

good luck,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Nathan Wiegman" wrote:
Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe "
and uses stuff (classes) from "ClassC.dll ", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDa taCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup .dll") but no dice. Any ideas?

Thanks,
Nate

The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Dec 3 '05 #2
Hi Peter,

Actually, I am trying to generate a schema (.xsd) from a class in a managed
assembly (.exe). These tools appear to generate source from existing schemas.

Thanks,
Nate

"Peter Bromberg [C# MVP]" wrote:
You might want to take a look at either XSDObjectGen, or possibly even Dingo,
both of which are respectively more sophisticated than XSD.EXE.

Here's a blog post describing each, that includes links to them:

http://petesbloggerama.blogspot.com/...objectgen.html

good luck,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Nathan Wiegman" wrote:
Hi,

I am using the XSD utility to generate schemas for some of the classes that
we serialize in our project. Everything works fine and dandy until I try and
create a schema for a class that spans assemblies.

For example, if I have a class named "ClassB" that resides in "ClassB.exe "
and uses stuff (classes) from "ClassC.dll ", I would expect the following to
work:

"xsd ClassB.exe ClassC.dll /t:ClassB"

In my case I am getting this error message:
"Error: There was an error processing 'wincal.exe'.
- There was an error reflecting type 'CMI.WinCal.cDa taCopy'.
- File or assembly name CmiSystemSetup, or one of its dependencies, was
not found."

I have given xsd.exe all of the referenced assemblies (including
"CmiSystemSetup .dll") but no dice. Any ideas?

Thanks,
Nate

The XSD version follows:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Dec 5 '05 #3

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

Similar topics

0
1521
by: Jasmin Wason | last post by:
Hi, Does anyone know if it is possible to validate some XML with an in-memory schema using Xerces-J? I have a schema that exists as a String in my Java code. I would like to validate some XML with this schema but the only way I can see to do this at the moment is to write out the string to a temporary file and then refer to it in:
0
1119
by: Laurens | last post by:
Hi, Any recommendations for a good - and free - schema documentation tool? The tool should be able to output as HTML. Thanks -Laurens
0
1391
by: sfsfsfsf | last post by:
SchemaCrawler is a new schema diff tool on Sourceforge. http://sourceforge.net/projects/schemacrawler It can display the schema in a text format (plain text, CSV, or HTML), designed for diff-ing. This is especially useful in diff-ing an older and newer version of a schema. It is written in Java (platform independent), and runs from the...
0
1737
by: Robert Jacobson | last post by:
Hi, I have a number of classes in one assembly. I'd like to use XSD.exe to generate a schema for just one class ("Parse Rules") and its nested child classes. Is there an attribute that will allow me to do this? I tried running XSD on the entire assembly, with the plan to delete the unnecessary classes from the .xsd afterwords. ...
0
1341
by: Andrius | last post by:
Hello, having some problems by writing XML file by XML schema. using strongly typed datasets. Schema: <?xml version="1.0" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="types.xsd" />
2
6917
by: PeterW | last post by:
I have an xml file from which I want to generate an xsd schema and at a later stage a cs class. The xml file has a mix of defined namespaces and also an empty namespace. These are defined as follows: <silcn:silcn xmlns:silcn='http://silcn.org/200309' xmlns='http://xmlprobe.com/200312'> it contains an element <report> off the root and...
0
1470
by: nithyasri | last post by:
How to Parse Xml schema using .NET and get an object model? I need to parse an Xml schema and display it as a tree structure in dot net. How do i do it? Any help will be appreciated.
2
1410
by: bindu123 | last post by:
Hi All, I have to generate a line chart in C on windows, using distance in the X-axis and throughput in Y-axis. Is it possible to generate charts using C programming in windows ? and i also i would like to develop a GUI interface, please guide me what should be used for the same ? Thanks for your help...
0
1284
by: Teka Cherenet | last post by:
I am newer for programming world in C# and SQL Server. so I wonder if it is possible to have a sample code which illustrates how to generate report using C# code. thank you
0
7633
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...
0
7941
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8147
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...
1
7699
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6320
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...
1
5520
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...
0
5247
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...
1
1238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
971
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...

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.