14

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.

4

2 回答 2

16

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

于 2010-10-26T23:39:26.680 回答
3

对于将来的参考,我强烈不鼓励任何人走这条路,因为它的目的是验证和分析 XML 模式。

.NET 在System.Xml.Schema命名空间中有一个非常强大的 API 用于执行此操作。

于 2011-10-27T18:56:44.187 回答