+ -
当前位置:首页 → 问答吧 → 一个 xml schema 的问题

一个 xml schema 的问题

时间:2011-10-10

来源:互联网

XML code

    <xs:complexType name="ArrayType">
        <xs:sequence>
         <!--这里定义的是一个数组,但是这个数组只能限定在几个类型之中,比如(bool int ,long ,double)这几个类型可以任意出现,但是只能出现一种类型。这个要怎么写?-->
        </xs:sequence>
    </xs:complexType>

比如这样的、
、

  <array>
        <bool>true</bool>
        <bool> false</bool>
        <bool> true</bool>
    </array>

    <array>
        <int> 10</int>
        <int> 10</int>
        <int> 10</int>
    </array>



这个schema文件要怎么写?

作者: bingbingzhe   发布时间: 2011-10-10

没人关注?
顶顶

作者: bingbingzhe   发布时间: 2011-10-10

难道发错地方了?

作者: bingbingzhe   发布时间: 2011-10-10