There is no official tool in the .NET Framework that does this.
VS.NET generates datasets from XML Schema.
There are third party efforts that generate XML files, eg Altova XMLSpy .
The problem is not well constrained. For a given XSD, there are potentially
zillions of valid XML documents. Given an XML document and an XSD, you can
validate the XML doc, but given an XSD only, generation of a valid XML doc
is an open ended question. The way xmlspy does it - it asks you if you want
to generate non-mandatory elements, or not. Likewise non-mandatory
attributes. And it asks how many elements in an unbounded sequence to
generate.
--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ o n l i n e . m i c r o s o f t . c o m
"Martijn" <ma*****@familiedebont.nl> wrote in message
news:2c*****************************@phx.gbl...
Because XSD (XML Schema Document) is a definition of the
XML document, there must be a parser that can read a XSD
file and give the complete XML file as a result.
Is there something like this, or do I have to create it by
my own??