ToolHub
中文
Light
GitHub
返回首页
/
数据格式
/
XML / XSD 校验器
加载中...
加载示例
XML
<book id="b1"> <title>ToolHub Handbook</title> <author>Comet</author> </book>
XSD
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="book"> <xs:complexType> <xs:sequence> <xs:element name="title" type="xs:string" minOccurs="1" /> <xs:element name="author" type="xs:string" minOccurs="1" /> </xs:sequence> <xs:attribute name="id" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:schema>
根元素
-
Schema 子元素
0
校验状态
通过
校验结果
XML 格式正确,且轻量 XSD 检查已通过。
这个校验器完全在浏览器中运行。它会检查 XML 是否格式正确,并对 XSD 的实用子集做检查:根元素、必填属性和顶层 complexType 中声明的直接子元素。