Does there exist an Xml schema that will validate other XML schemas?
What I want to do is take such a meta-schema (if it exists) and run it through XSD.EXE so that I can use C# classes to read an arbitrary XML schema and analyze it.
For brevity, the text and examples in this specification use the prefix xs: to stand for this namespace; in practice, any prefix can be used. in the end xs or xsd are only prefixes. XSD is used for example more by Microsoft schemas. The important is how you declare the namespace.
XSD elements can be of type simpleType , complexType , or anyType . An element of type simpleType contains only text. It cannot have attributes and elements. An element of type complexType can contain text, elements, and attributes.
An XML Schema describes the structure of an XML document. The XML Schema language is also referred to as XML Schema Definition (XSD).
http://www.w3.org/2001/XMLSchema.xsd
For future references, I strongly discourage anyone to go down this path, when the intent is to validate and analyze an XML Schema.
.NET has a very robust API for doing this, in the System.Xml.Schema namespace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With