XSD NewDataSet Namespace?

Posted by Ian on Stack Overflow See other posts from Stack Overflow or by Ian
Published on 2010-05-26T14:42:57Z Indexed on 2010/05/26 16:11 UTC
Read the original article Hit count: 366

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xsd