Hello!
I would like to Write XML document by reading .xsd file using
vb.net/c#.net.
You could use the Schema-Object-Model (SOM) but consider this:
<element name="root">
<complexType>
<choice>
<element name="a" />
<element name="b" />
</choice>
</complexType>
</element>
How should your output document look like?
<root><a /></root> or <root><b /></root>?
Consider the XHTML-Schema! There are infinite choices:
<group name="block">
<element name="div">
<complexType>
<choice>
<group ref="block" />
</choice>
</complexType>
</element>
</group>
What will you do?
<div />, <div><div /></div>, <div><div><div /></div></div>?
It is impossible to cover it all...
--
Pascal Schmitt