Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an XSD for XSD's, a Meta-XSD? [duplicate]

Tags:

c#

xml

xsd

xsd.exe

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.

like image 923
Robert Harvey Avatar asked Oct 26 '10 23:10

Robert Harvey


People also ask

What is the difference between Xs and XSD?

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.

What is complexType and simpleType in XSD?

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.

Is XSD and XML Schema same?

An XML Schema describes the structure of an XML document. The XML Schema language is also referred to as XML Schema Definition (XSD).


2 Answers

http://www.w3.org/2001/XMLSchema.xsd

like image 80
Daniel Haley Avatar answered Nov 11 '22 07:11

Daniel Haley


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.

like image 37
Petru Gardea Avatar answered Nov 11 '22 05:11

Petru Gardea