XML Schema All In One
XML Schema All In One
XSD
An XML Schema
describes the structure of an XML
document.
The XML Schema language
is also referred to as XML Schema Definition
(XSD).
https://en.wikipedia.org/wiki/XML_schema
https://www.w3.org/XML/Schema
https://www.w3.org/TR/xmlschema-1/
XML Schema Definition
An XML Schema describes the structure of an XML document, just like a DTD
.
An XML document with correct syntax is called "Well Formed".
An XML document validated against an XML Schema is both "Well Formed" and "Valid".
https://www.w3schools.com/xml/xml_schema.asp
demos
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
https://www.w3schools.com/xml/schema_intro.asp
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
https://www.cnblogs.com/xgqfrms/p/15869698.html#5212841
https://codesandbox.io/s/typescript-declare-module-bug-z479fm?file=/index.d.ts:425-757
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17718162.html
未经授权禁止转载,违者必究!