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

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

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

    嘟嘟

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      26 Posts :: 0 Stories :: 6 Comments :: 0 Trackbacks

    Namespaces are a way to associate a group of elements with each other.
     
     <wire:order xmlns:wire="   <wire:store>
         <wire:shirt xmlns:wire="http:/www.wire-man.com/ns/shirts">                 <!-->覆蓋realname,不能覆蓋localname<-->
           <wire:color>purple</wire:color>
         </wire:shirt>
       </wire:store>
     </wire:order>

    多個namespaces
     <wire:order xmlns:wire="
       <wire:store>
         <wire:shirt xmlns:stitch="http:/www.wire-man.com/ns/stitch">               <!-->2個<-->
            <wire:color>
               <stitch:shade>lavender</stitch:shade>
            </wire:color>
         </wire:shirt>
       </wire:store>
     </wire:order>

    Namespaces and attributes
     元素前面加prefix,參數前面不用加

    Namespaces and DTDs
     DTD不支持Namespaces,只是當作一個attribute.
     <?xml version="1.0" encoding="UTF-8"?>
     <!DOCTYPE  wire:order [
     <!ELEMENT wire:order (wire:store)>                                            <!-->元素前加上prefix<-->
     <!ATTLIST wire:order xmlns CDATA #FIXED "
     <!ELEMENT wire:store (#PCDATA)>
     ]>

     <wire:order xmlns=" <wire:store>Stitch Store</wire:store>
     </wire:order>

    Namespaces are not technically part of the XML 1.0 spec, thus,namespaces have nothing to do with the validity of an XML document.

    Namespace and XML Schema
      <!-->XML  FILE<-->
      <?xml version="1.0" encoding="UTF-8" ?>
      <pants:order
         xmlns:xsi="
         xsi:noNamespaceSchemaLocation="namespace2.xsd"
         xmlns:pants="
            <store>30 paisley capri</store>                                        <!-->這個元素不在namespaces中<-->
      </pants:order>

      <!-->XML Schema FILE namespace2.xsd<-->
      <?xml version="1.0" encoding="UTF-8" ?>
      <xsd:schema                                                                  <!-->定義一個namespace所有內容都飽含再一個xsd:schema元素內<-->
     xmlns:xsd="
     targetNamespace=" xmlns:wire="  
     <xsd:element name="order">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="store" type="xsd:string" />
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
      </xsd:schema>
     
      ××上面例子中注意xmlns:pants,targetNamespace, xmlns:wire是使用一樣得URI值。

      Assign the namespaces to all elements is elementFormDefault="qualified"
        ...
        <xsd:schema                                                                 
     xmlns:xsd="
     targetNamespace=" xmlns:wire="        elementFormDefault="qualified"> 
        ...
     
      Assign the namespaces to the individule element
        ...
        <xsd:element name="order">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="store" type="xsd:string" form="qualified"/>  <!-->***<-->
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
       ...

      Exclude an element from the namespace
        ...
        <xsd:element name="order">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="store" type="xsd:string" form="unqualified"/>  <!-->***<-->
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
       ...

    主站蜘蛛池模板: 日韩视频在线观看免费| 永久免费观看黄网站| 亚洲国产精品免费视频| 亚洲AV永久纯肉无码精品动漫 | eeuss影院ss奇兵免费com| 国产jizzjizz视频全部免费| 亚洲AV无码一区二区三区性色| 国产精品成人免费一区二区 | 亚洲精品视频观看| 91免费人成网站在线观看18| 亚洲成人免费电影| 成年女人男人免费视频播放| 亚洲色无码国产精品网站可下载| 成年女人毛片免费观看97| 爱情岛论坛亚洲品质自拍视频网站| 免费看AV毛片一区二区三区| 国产亚洲精品美女| 亚洲精品无码高潮喷水在线| 一级毛片免费不卡在线| 亚洲国产亚洲片在线观看播放 | 久久久久国产亚洲AV麻豆 | 妻子5免费完整高清电视| 亚洲国产熟亚洲女视频| 国产人妖ts在线观看免费视频| 黄页视频在线观看免费| 亚洲国产日韩在线视频| xx视频在线永久免费观看| 亚洲高清国产拍精品熟女| 免费在线观看你懂的| 国产成人无码区免费内射一片色欲| 亚洲毛片无码专区亚洲乱| 永久免费无码网站在线观看| 好吊色永久免费视频大全| 91亚洲精品麻豆| 亚洲高清偷拍一区二区三区| 日本高清高色视频免费| 亚洲女子高潮不断爆白浆| 亚洲日韩精品一区二区三区无码 | 尤物视频在线免费观看| 亚洲三级电影网站| 免费人成年激情视频在线观看 |