XSD NewDataSet Namespace?
- by Ian
I'm running XSD on an XML file and getting something strange. Depending on the depth of elements it produces a 'NewDataSet' element which will then is prefixed in Visual Studio to my auto-generated classes which is something I don't want. I've got quite a complex structure and am just trying to add a simple version element or attribute which is causing the problem.
The simplest demo I could come up with is this.
<A>
<B>Text</B>
</A>
Running this through XSD says there is an element called 'NewDataSet' which may or may not appear and will prefix namespaces.
<A>
<B>
<C>Text</C>
</B>
</A>
This example works as expected and there is no magic 'NewDataSet' element in the generated XSD file.