471,086 Members | 853 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 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 5958
<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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Skc | last post: by
2 posts views Thread by Vagabond Software | last post: by
3 posts views Thread by farseer | last post: by
2 posts views Thread by Ali | last post: by
reply views Thread by Alun Jones | last post: by

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.