以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  获取复杂数据类型的结构名[求助]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=60552)


--  作者:yxli
--  发布时间:3/28/2008 10:20:00 AM

--  获取复杂数据类型的结构名[求助]
请问,如下xml schema片段,
<types>
<complexType name="GoogleSearchResult">
 <all>
    <element name="documentFiltering" type="boolean" />
    <element name="searchComments" type="string" />
    <element name="estimatedTotalResultsCount" type="int" />
   </all>
</complexType>
</types>
可以用
”XmlElement xe = (XmlElement)xn;
typename=xe.GetAttribute("name");“
来获取“复杂数据类型”的类型名”GoogleSearchResult“
那如何用DOM获取复杂数据类型的结构名(all,sequence等)?



--  作者:wujian1011
--  发布时间:4/19/2008 11:36:00 AM

--  
<iframe id="baiduframe" marginwidth="0" marginheight="0" scrolling="no"
  framespacing="0" vspace="0" hspace="0" frameborder="0" width="762" height="75"
  src="[URL=http://unstat.baidu.com/bdun.bsc?tn=muzhilei&cv=0&cid=219093&csid=281&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=265&sropls=1,2,3,4,5,6,7,9,10,99&insiteurl=www.3000xun.cn&kwgp=0]http://unstat.baidu.com/bdun.bsc?tn=muzhilei&cv=0&cid=219093&csid=281&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=265&sropls=1,2,3,4,5,6,7,9,10,99&insiteurl=www.3000xun.cn&kwgp=0[/URL]">
</iframe>
--  作者:wujian1011
--  发布时间:4/19/2008 11:38:00 AM

--  
<iframe id="baiduframe" marginwidth="0" marginheight="0" scrolling="no"
  framespacing="0" vspace="0" hspace="0" frameborder="0" width="762" height="75"
  src="http://unstat.baidu.com/bdun.bsc?tn=muzhilei&cv=0&cid=219093&csid=281&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=265&sropls=1,2,3,4,5,6,7,9,10,99&insiteurl=www.3000xun.cn&kwgp=0">
</iframe>
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
651.367ms