0

Is there a library function in the .Net framework to create xml schema definitions for xaml objects? Or is it possible to steer xsd.exe's behaviour, so it will create these schema definitions?

Andreas Walter
  • 826
  • 1
  • 10
  • 24

1 Answers1

1

XAML is a subset of XML (as far as I know), so I think you would be fine with XmlSchemaInference class.

See my question:

XmlSchema inferred from an XML file - how to iterate through all the elements in the XSD? (I answered it myself)

as well as:

Generating an XSD file with xsd.exe tool from an XML file with multiple namespaces

Community
  • 1
  • 1
Konrad Morawski
  • 8,307
  • 7
  • 53
  • 91
  • Thanks for your hints. I will have a look on it. Maybee I will use XamlType's for creating the schema instead of XmlSchemaInterference. – Andreas Walter Dec 06 '11 at 11:06