<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    java學習

    java學習

     

    schema的筆記


    schema文件:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="  targetNamespace="  xmlns:tns="  elementFormDefault="qualified">
     <element name="user">
      <complexType>
       <sequence>
        <element name="id" type="int"/>
        <element name="username" type="string"/>
        <element name="born" type="date"/>
       </sequence>
      </complexType>
     </element>
    </schema>

    xml文件1:
    <?xml version="1.0" encoding="UTF-8"?>
    <user xmlns="
       xmlns:xsi="   xsi:schemaLocation=" <id>1</id>
     <username>zhangsan</username>
     <born>1989-12-22</born>
    </user>

    xml文件2:
    <?xml version="1.0" encoding="UTF-8"?>
    <user xmlns="
       xmlns:xsi="   xsi:noNamespaceSchemaLocation="01.xsd">
      <id>11</id>
      <username>lisi</username>
      <born>1988-11-11</born>
    </user>

    schema文件2:

    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="

     <element name="books">
      <complexType>
      <!-- maxOccurs表示最大出現次數 -->
       <sequence maxOccurs="unbounded">
        <element name="book">
         <complexType>
          <sequence minOccurs="1" maxOccurs="unbounded">
           <element name="title" type="string" />
           <element name="content" type="string" />
           <choice>
            <element name="author" type="string" />
            <element name="authors">
             <complexType>
              <all><!-- 每個元素只能出現一次 -->
               <element name="author" type="string"/>
              </all>
             </complexType>
            </element>
           </choice>
          </sequence>
          <attribute name="id" type="int" use="required"/>
         </complexType>
        </element>
       </sequence>
      </complexType>
     </element>

    </schema>


    xml文件:
    <?xml version="1.0" encoding="UTF-8"?>
    <book:books xmlns:book="
       xmlns:xsi="   xsi:noNamespaceSchemaLocation="02.xsd">
     <book:book id="1">
      <book:title>Java in action</book:title>
      <book:content>Java is good</book:content>
      <book:author>Bruce</book:author>
     </book:book>
     <book:book id="2">
      <book:title>SOA in action</book:title>
      <book:content>soa is difficult</book:content>
      <book:authors>
       <book:author>Jike</book:author>
      </book:authors>
     </book:book>
    </book:books>

    schema文件3:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="
      targetNamespace="  xmlns:tns="  elementFormDefault="qualified">
      
     <element name="person" type="tns:personType"/>
     
     <complexType name="personType">
      <sequence>
       <element name="name" type="string"/>
       <element name="age" type="tns:ageType"/>
       <element name="email" type="tns:emailType"/>
      </sequence>
      <attribute name="sex" type="tns:sexType"/>
     </complexType>
     
     <simpleType name="emailType">
      <restriction base="string">
       <pattern value="(\w+\.*)*\w+@\w+\.[A-Za-z]{2,6}"/>
       <minLength value="6"/>
       <maxLength value="255"/>
      </restriction>
     </simpleType>
     
     <simpleType name="ageType">
      <restriction base="int">
       <minInclusive value="1"/>
       <maxExclusive value="150"/>
      </restriction>
     </simpleType>
     
     <simpleType name="sexType">
      <restriction base="string">
       <enumeration value="男"/>
       <enumeration value="女"/>
      </restriction>
     </simpleType>
    </schema>

    xml文件:
    <?xml version="1.0" encoding="UTF-8"?>
    <person xmlns="
       xmlns:xsi="   xsi:schemaLocation="  <name>搜索</name>
      <age>149</age>
      <email>sadf@sdf.css</email>
    </person>

    schema文件4:




    posted on 2013-08-13 09:58 楊軍威 閱讀(197) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    導航

    統計

    常用鏈接

    留言簿

    隨筆檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲国产成a人v在线| 亚洲嫩模在线观看| 另类专区另类专区亚洲| 波多野结衣久久高清免费| 亚洲精品V天堂中文字幕| 狼友av永久网站免费观看| 亚洲AV无码一区二区三区牲色| 日韩免费观看的一级毛片| 自拍偷自拍亚洲精品播放| 亚洲一本大道无码av天堂| 国产精品永久免费视频| 亚洲精品无码Av人在线观看国产| 国产三级在线免费观看| 亚洲AV无码专区亚洲AV伊甸园| 95免费观看体验区视频| 亚洲国产午夜电影在线入口| 成人免费无毒在线观看网站| 曰批全过程免费视频免费看| 亚洲婷婷五月综合狠狠爱| 国产精品免费大片| 国产精品亚洲片夜色在线| 四虎影视免费永久在线观看| 国产免费人成视频在线播放播| 亚洲国产女人aaa毛片在线 | 一个人免费视频观看在线www| 亚洲精选在线观看| 暖暖免费高清日本中文| 一个人看的在线免费视频| 亚洲自偷自拍另类图片二区| 精品久久免费视频| 国内精品一级毛片免费看| 久久精品国产亚洲AV久| 亚洲欧洲精品成人久久奇米网| 97视频免费观看2区| 国产成人综合亚洲| 久久久久亚洲Av片无码v| 妞干网免费观看视频| a级毛片免费全部播放无码| 亚洲91精品麻豆国产系列在线| 亚洲国产a级视频| 国产电影午夜成年免费视频 |