做网站和推广,手机版网站开发教学,外贸开发产品网站建设,二手网站建设目标XML Schema中的simpleContent 元素出现在complexType 内部#xff0c;是对complexType 的一种扩展、或者限制。 simpleContent 元素在complexType元素内部最多只能出现1次。 simpleContent元素下面必须包含1个restriction或者extension元素。
例如#xff0c;下面的Schema片…XML Schema中的simpleContent 元素出现在complexType 内部是对complexType 的一种扩展、或者限制。 simpleContent 元素在complexType元素内部最多只能出现1次。 simpleContent元素下面必须包含1个restriction或者extension元素。
例如下面的Schema片段定义了一个复杂类型condition它的值是字符串类型包含了name和type两个可选属性
xs:element namecondition maxOccursunbounded minOccurs0xs:complexTypexs:simpleContentxs:extension basexs:stringxs:attribute typexs:string namename useoptional/xs:attribute typexs:string nametype useoptional//xs:extension/xs:simpleContent/xs:complexType
/xs:element符合上面Schema的一段xml数据
condition namelD typeeq26/condition
condition nameDATE typelt20231120/condition