以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XQuery/XLink/XPointer/ 』  (http://bbs.xml.org.cn/list.asp?boardid=14)
----  请问下面的A和B的XML有什么不同  (http://bbs.xml.org.cn/dispbbs.asp?boardid=14&rootid=&id=22693)


--  作者:mycwcgr
--  发布时间:10/1/2005 1:23:00 PM

--  请问下面的A和B的XML有什么不同
What differences are there between A section and B section ? Many Thanks!


1. What differences are there between A section and B section ?

2. What does the keyword "elementFormDefault" mean?


//----------------------- A section -------------------------------
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns="http://myBooks"   elementFormDefault="qualified"
  targetNamespace="http://myBooks">

  <xsd:element name="bookstore" type="bookstoreType" />

  <xsd:complexType name="bookstoreType">
   <xsd:sequence maxOccurs="unbounded">
     <xsd:element name="book" type="bookType" />
   </xsd:sequence>
  </xsd:complexType>

</xsd:schema>
//----------------------- A section -------------------------------


//----------------------- B section -------------------------------
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns="http://myBooks"   elementFormDefault="qualified"
  targetNamespace="http://myBooks">

  <xsd:element name="bookstore" type="bookstoreType" />

  <xsd:complexType name="bookstoreType">
   <xsd:sequence>
     <xsd:element name="book" type="bookType" maxOccurs="unbounded"/>  
   </xsd:sequence>
  </xsd:complexType>

</xsd:schema>
//----------------------- B section -------------------------------


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
27.344ms