PC Review


Reply
Thread Tools Rate Thread

Dataset Schema from XSD

 
 
MR
Guest
Posts: n/a
 
      6th Aug 2005
Is there a way to load an XML schema into a dataset from a resource or other
object? I am using ReadXmlSchema(filename) and that works fine.
However, I have many XSD files that I would rather not have to distribute
with the application.
I would like to be able to use a typed dataset since the schema is defined
in advance.
Is this possible?
thanks


 
Reply With Quote
 
 
 
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      7th Aug 2005
Yes this is possible.

You can compile them at runtime and then make your application smart enough
that it doesn't recompile the same XSD twice.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
----------------------------------------------------------------------------



"MR" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way to load an XML schema into a dataset from a resource or
> other object? I am using ReadXmlSchema(filename) and that works fine.
> However, I have many XSD files that I would rather not have to distribute
> with the application.
> I would like to be able to use a typed dataset since the schema is defined
> in advance.
> Is this possible?
> thanks
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I sync a typed dataset schema with database schema easily? John Microsoft Dot NET 1 2nd Jan 2008 10:37 AM
Dataset Schema from XSD MR Microsoft C# .NET 3 10th Aug 2005 09:21 AM
dataset+xml schema =?Utf-8?B?UHJpeWE=?= Microsoft ASP .NET 0 4th Apr 2005 05:29 AM
DataSet ReadXmlSchema fails on a schema with (xsd:)imported schema Eric van Wijk Microsoft ADO .NET 0 27th Jul 2004 05:14 PM
Re: dataset schema Cor Microsoft ADO .NET 0 25th Mar 2004 09:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:02 AM.