以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 XML源码及示例(仅原创和转载) 』 (http://bbs.xml.org.cn/list.asp?boardid=32) ---- 请教一个关于dom动态生成xml的问题 (http://bbs.xml.org.cn/dispbbs.asp?boardid=32&rootid=&id=7302) |
-- 作者:fishhead83 -- 发布时间:5/9/2004 1:47:00 AM -- 请教一个关于dom动态生成xml的问题 <% set my_connection= Server.CreateObject("ADODB.Connection") my_connection.open MM_sql_STRING set rs = my_connection.execute(my_sql_string) set xmlDom = Server.CreateObject("Microsoft.XMLDOM") xmlDom.load(Server.MapPath("./test1.xml")) set rootElement = xmlDom.documentElement dim newChild dim index index=0 dim tempNode while not rs.EOF set tempChild = xmlDom.createElement("CSRC_CLASS2") set tempChild = xmlDom.createElement("tradeCount") set tempChild = xmlDom.createElement("tradePrice") newChild.appendChild tempChild rootElement.appendChild newChild '销毁对象引用
我想问一下,为什么生成的xml文档只显示最后一个节点tradeprice和其记录 |
-- 作者:fishhead83 -- 发布时间:5/9/2004 11:41:00 PM -- 各位大哥大姐,怎么没人理我呀,是不是不屑于理我呀,我的这个问题真的急待解决,要做毕业设计的,多谢了,救急呀 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.997ms |