以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 XML基础 』 (http://bbs.xml.org.cn/list.asp?boardid=1) ---- 在xml schema中,为什么有的element只有type,没有name (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=64658) |
-- 作者:tomorrowaivy -- 发布时间:7/16/2008 1:18:00 PM -- 在xml schema中,为什么有的element只有type,没有name <xsd:complexType > <xsd:sequence> <xsd:element name="name"type="xsd:string"/> <xsd:element type="xsd:string"/> <xsd:element type="xsd:string"/> <xsd:element type="xsd:decimal"/> </xsd:sequence> <xsd:attribute name="country" type="xsd:NMTOKEN" fixed="US"/> </xsd:complexType> 如以上这个例子中的加粗部分是怎么回事? |
-- 作者:enyaxp -- 发布时间:7/18/2008 4:33:00 PM -- 非全局元素声明中可以没有name,默认为空。 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
31.250ms |