PC Review


Reply
Thread Tools Rate Thread

Generate XML from XSD

 
 
=?Utf-8?B?TWFyeQ==?=
Guest
Posts: n/a
 
      23rd Jun 2005
Hi,
My application has to generate dynamically XMLs from any schema. The
application doesn't know the shema structure, only the name of the .xsd file.
So I would like to generate an empty XML from given XSD. Could anybody tell
me how I can do this in .NET Studio?

Thanks,
Mary


 
Reply With Quote
 
 
 
 
Richard P
Guest
Posts: n/a
 
      29th Jun 2005
Mary

I can't remember the precise mechanics but I think you can achieve want you
want to do by using Dataset methods.

you create a dataset ds, ds.ReadSchema(); ds.GetXML();

Manipulating the XML is easier if you then convert the dataset into an
XmlDataDocument.

I think it can be awkward creating an XML file of with a full set of empty
tags if the schema elements are optional. I think there is a property you
can set to include empty tags (or is that in the XmlTextWriter?)

-R


"Mary" <(E-Mail Removed)> wrote in message
news:CB92DC66-29FC-46AC-859A-(E-Mail Removed)...
> Hi,
> My application has to generate dynamically XMLs from any schema. The
> application doesn't know the shema structure, only the name of the .xsd
> file.
> So I would like to generate an empty XML from given XSD. Could anybody
> tell
> me how I can do this in .NET Studio?
>
> Thanks,
> Mary
>
>



 
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
Failed to generate a user instance of SQL Server. Only an integratedconnection can generate a user instance. Harlan Messinger Microsoft ASP .NET 2 28th Mar 2010 08:51 PM
Using VBA in an ADP to generate an ID value imani_technology_spam@yahoo.com Microsoft Access ADP SQL Server 5 18th Oct 2006 03:37 AM
generate a random number and use if function to generate new data =?Utf-8?B?RG9nZG9jMTE0Mg==?= Microsoft Excel Worksheet Functions 4 26th Apr 2006 04:44 AM
CRC generate =?Utf-8?B?U2hpc2hpciBLdW1hciBNaXNocmE=?= Microsoft ASP .NET 1 1st Jul 2004 03:28 PM
Generate CSR without IIS Jim Adams Microsoft Dot NET 0 29th Jul 2003 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 PM.