471,325 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Generate XML from XSD

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
Jul 21 '05 #1
1 4465
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" <Ma**@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
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

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Garry Dawkins | last post: by
9 posts views Thread by Henk Verhoeven | last post: by
1 post views Thread by A Traveler | last post: by
reply views Thread by ward | last post: by
2 posts views Thread by bthubbard | last post: by
reply views Thread by rosydwin | 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.