all groups > dotnet xml > september 2005 >
You're in the

dotnet xml

group:

XML Instance from XML Schema


XML Instance from XML Schema EAI
9/28/2005 4:01:07 PM
dotnet xml:
How do I create an instance of XML from XML Schema (xsd to be specific) and
instantiate its elements in C#?

Re: XML Instance from XML Schema EAI
9/28/2005 5:25:14 PM
Can I create a cs file from schema using XSD tool and then create new
instance and instantiate it and convert it into xml? I am looking for even
better way to do that.

Thanks


[quoted text, click to view]

Re: XML Instance from XML Schema Pascal Schmitt
9/28/2005 11:04:55 PM
[quoted text, click to view]

You can't.
What you can do is getting Schema-information from the SchemaObjectModel
and build some XML for this. But as there is not "the one" XML-file that
matches the schema, there is no easy way (consider XHTML).



--
Re: XML Instance from XML Schema Pascal Schmitt
9/29/2005 7:20:12 PM
Hello!

[quoted text, click to view]

How do you want to fill it with data?
The XSD Tool also does not cover all of XSD.

What do you want to do? Why do you need to create an XML document from
an (unknown?) Schema?


--
AddThis Social Bookmark Button