ch3-26-1.xml

来自「《XML语言及应用》作者华铨平—examples」· XML 代码 · 共 31 行

XML
31
字号
<?xml version="1.0" encoding="GB2312"?>
<Schema xmlns="urn:schema-microsoft-com:xml-data"
        xmlns:dt="urn:schema-microsoft-com:datatypes">
<description>属性的声明</description>
<AttributeType name="出生年月">
   <datatype dt:type="date"/>
</AttributeType>
<AttributeType name="班级" required="yes"/>
<AttributeType name="类别" required="yes"/>
<description>元素的声明</description>
<ElementType name="学生" content="eltOnly" order="seq">
   <attribute type="出生年月"/>
   <attribute type="班级"/>
   <element type="学号"/>
   <element type="姓名"/>
   <element type="性别"/>
   <element type="入学成绩"/>
</ElementType>
<ElementType name="学号" content="textOnly">
   <datatype dt:type="string"/>
</ElementType>
<ElementType name="姓名" content="textOnly"/>
<ElementType name="性别" content="textOnly"/>
<ElementType name="入学成绩" content="textOnly">
   <datatype dt:type="int"/>
   <attribute type="类别"/>
</ElementType>
</Schema>


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?