todolist.xsd
来自「java xml转换可以可以实现复杂的xml解析」· XSD 代码 · 共 55 行
XSD
55 行
<?xml version="1.0" encoding="UTF-8"?><!--Copyright 2004 The Apache Software FoundationLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. --><xs:schema targetNamespace="http://xmlbeans.apache.org/samples/validation/todolist" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlbeans.apache.org/samples/validation/todolist" elementFormDefault="qualified"> <xs:element name="todolist"> <xs:complexType> <xs:sequence> <xs:element name="item" type="itemType" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="itemType"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="description" type="xs:string" minOccurs="0"/> <xs:element name="due_by" type="xs:dateTime" minOccurs="0"/> <xs:element name="action" type="actionType"/> </xs:sequence> <xs:attribute name="id" type="idType"/> </xs:complexType> <xs:simpleType name="nameType"> <xs:restriction base="xs:string"> <xs:maxLength value="50"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="idType"> <xs:restriction base="xs:int"> <xs:maxExclusive value="100"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="actionType"> <xs:restriction base="xs:string"> <xs:enumeration value="do"/> <xs:enumeration value="delegate"/> <xs:enumeration value="someday_maybe_defer"/> <xs:enumeration value="toss"/> <xs:enumeration value="incubate"/> <xs:enumeration value="file"/> </xs:restriction> </xs:simpleType></xs:schema>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?