472,992 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Importing existing XSD schema file into Visual Studio 2005

Question: What's the "canonical" way to import an existing XSD schema
file
into VS2005 in such a way that I can use standard C# object / property
techniques to create content of that schema type and ultimately
generate an
XML file based on that schema?

Background: I've been given an XSD file by a 3rd party. I need to
generate
XML files based on that schema. Note that is ***not*** for web service
interaction - just creation of on-disk XML files. I can easily enough
do an
"Add Existing Item..." into VS, and I can open the schema up in the
designer.
But that doesn't seem sufficient to get me any classes that I can
create and
populate in order to build up the content which would be used to write
the
XML file.

I'm familiar with the XSD.EXE utility. Is that my only recourse? I'm
guessing there's something real simple I'm missing, but I can't figure
out
what it is for the life of me...

Thanks much,

Donnie

Aug 22 '06 #1
1 6068
<do*********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Question: What's the "canonical" way to import an existing XSD schema
file
into VS2005 in such a way that I can use standard C# object / property
techniques to create content of that schema type and ultimately
generate an
XML file based on that schema?

Background: I've been given an XSD file by a 3rd party. I need to
generate
XML files based on that schema. Note that is ***not*** for web service
interaction - just creation of on-disk XML files. I can easily enough
do an
"Add Existing Item..." into VS, and I can open the schema up in the
designer.
But that doesn't seem sufficient to get me any classes that I can
create and
populate in order to build up the content which would be used to write
the
XML file.

I'm familiar with the XSD.EXE utility. Is that my only recourse? I'm
guessing there's something real simple I'm missing, but I can't figure
out
what it is for the life of me...

Thanks much,

Donnie
Nope. XSD.EXE is it, as far as I know. When your XSD is describing a
DataSet, there are tools in VS.NET to generate the typed DataSet classes
from the XSD automatically, but I don't believe that the equivalent exists
for non-DataSet XSD files.

John
Aug 22 '06 #2

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

Similar topics

11
by: Skc | last post by:
I have a .txt which has been exported as a .csv from an external source. What i need to do is to import this into SQL2000 (into a table) but I need to do special things on the data: 1. I need to...
2
by: Vagabond Software | last post by:
I have translated a DTD to an XML Schema (XSD) file by hand, and the Schema View in Visual Studio .NET 2003 seems to diplay everything properly. However, when I specify the schemalocation in my...
3
by: farseer | last post by:
Hello, i have a schema which also imports the XHTML schema: <xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/> This...
6
by: LesleyW | last post by:
Hi Apologies if this is a really dumb question, but being new to XML and Schemas, I wonder if giving the namespace for eg xsd or xsi as a website address means that the user has to be online...
2
by: Ali | last post by:
I am having problem compiling schema contained in WSDL file when analyzing schema types contained in it (for example http://www.ebout.net/net/GoogleSearch.wsdl). Following code demonstrates my...
0
by: Alun Jones | last post by:
I'm getting the above error in a dialog box from Visual Studio 2005 when trying to sign an assembly using a PFX file, and would like to know how to resolve the problem. Background: The PFX...
5
by: carlpayne1984 | last post by:
Hi all, I'm fairly new to XML, however already I have studied myself stupid without being able to solve this problem. Basically, I have an XML file/Schema about a CD catalog that I've created that...
0
by: Norman Diamond | last post by:
Does anyone know how to add the VC++2005 compiler for x64 to an existing installation of Visual Studio 2005 SP1? I opened Control Panel - Program Additions and Deletions - Microsoft Visual...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.