以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 DTD/XML Schema 』 (http://bbs.xml.org.cn/list.asp?boardid=23) ---- xml的节点删除问题 (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=59113) |
-- 作者:86版dingpin -- 发布时间:2/24/2008 7:35:00 PM -- xml的节点删除问题 <?xml version="1.0" encoding="UTF-8"?> <library> <book> <id>b001</id> <title>我是一个兵</title> <author>大兵</author> </book> <book> <id>007</id> <title>bookname</title> <author>ding</author> </book> <book> <id>007</id> <title>bookname</title> <author>ding</author> </book> <book> <id>007</id> <title>bookname</title> <author>ding</author> </book> </library> 我想在JBuilder中删除<author>节点,我写了这个方法 NodeList node=doc.getElementsByTagName(tagname); for(int i=0; i<node.getLength(); i++){ at AddBook.Delete(AddBook.java:91) at AddBook.main(AddBook.java:113) Exception in thread "main" xml文件中的<author>节点没有删除掉.请高手指点...... |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |