473,320 Members | 2,000 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.

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 6088
<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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
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: 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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.