以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  总觉得  complexType 中总含有 sequence 的,是不是这样的啊?各位~~~~  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=44093)


--  作者:jackie_yi
--  发布时间:3/19/2007 3:19:00 PM

--  总觉得  complexType 中总含有 sequence 的,是不是这样的啊?各位~~~~
总觉得  complexType 中总含有 sequence 的,是不是这样的啊?各位~~~~

  或者是常常吧,


--  作者:gemingke
--  发布时间:3/22/2007 8:24:00 PM

--  
没有特殊要求的话,就是这样
--  作者:jackie_yi
--  发布时间:3/27/2007 6:31:00 PM

--  
o  !!谢谢!!
--  作者:liufu1983
--  发布时间:4/4/2007 10:42:00 PM

--  
可以放在其他地方吧

--  作者:xml-linguist
--  发布时间:4/9/2007 11:35:00 AM

--  
先看下面一段说明:

XSD Complex Elements

A complex element contains other elements and/or attributes.
----------------------------------------------------------------------------------
What is a Complex Element?
A complex element is an XML element that contains other elements and/or attributes.

There are four kinds of complex elements:

empty elements
elements that contain only other elements
elements that contain only text
elements that contain both other elements and text
Note: Each of these elements may contain attributes as well!
=========================================

"A complex element is an XML element that contains other elements and/or attributes."
“包含其他元素和/或者属性的元素”
那么说,仅仅包含属性的也属于complexType,这时不一定非得有sequence。
=========================================
一知半解,不知以上说明是否准确!


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