1

I have received an XSD schema that starts with (actual values replaced with ...):

<xs:schema targetNamespace="..."
           elementFormDefault="..."
           xmlns="..."
           xmlns:mstns="..."
           xmlns:xs="...">

Does the presence of xmlns:mstns mean that this XSD was generated from a C# class using xsd.exe? Question What's xmlns:mstns in a XSD? implies that it is added from XmlSerializer, and I know you can create an XSD from a C# class.

sashoalm
  • 75,001
  • 122
  • 434
  • 781
  • No. xsd.exe will take any schema and produce classes. Having xmlns:mstns means the schema uses the additional schema found at the msdn website. – jdweng Apr 06 '17 at 14:04
  • 1
    Is there a reason you're asking? The XSD shown in the second question you linked to doesn't have `xmlnd:mstns` in it. – JLRishe Apr 06 '17 at 14:08
  • @jdweng I'm talking about [creating an XSD from C# classes](http://stackoverflow.com/a/10017422/492336), not about creating C# classes from an XSD. Also the URL inside the mstns doesn't point to an msdn website - actually it has the same value as xmlns attrib. – sashoalm Apr 06 '17 at 14:42
  • @JLRishe Thanks, I hadn't noticed the output is provided. So the generated XSD wouldn't have mstns. – sashoalm Apr 06 '17 at 14:48

0 Answers0