xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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

image

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

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-2025

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(6)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
历史上的今天:
2022-09-20 河南省人才交流中心 All In One
2021-09-20 Flutter 2.5 All In One
2020-09-20 Swift 5.3
2020-09-20 OTA development
2019-09-20 React & Dva & Actions & dispatch & effects
2018-09-20 Linux Bash & rm -rf & Node.js & rimraf All In One
2018-09-20 Spring Boot & JsonParser All In One
点击右上角即可分享
微信分享提示