org.w3c.dom.Node 中有一个方法 removeChild(Node oldChild) public Node removeChild(Node oldChild)
throws DOMExceptionRemoves the child node indicated by oldChild from the list of children, and returns it. Parameters:
oldChild - The node being removed.
Returns:
The node removed.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldChild is not a child of this node.
throws DOMExceptionRemoves the child node indicated by oldChild from the list of children, and returns it. Parameters:
oldChild - The node being removed.
Returns:
The node removed.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldChild is not a child of this node.
解决方案 »
- 求一个摇奖的算法或者思路
- parent 一对多 多对一 一张表
- 开发环境是Eclipse.使用java,开源方面的图像应用使用的最多?(问题内详)
- dom读xml文本节点问题
- 怎么用java生成一个XML文件,不用JDOM
- 紧急求助!!!!我用POI来导出数据到EXCEL文件时,出现问题!
- struts下传参数到ActionForm的问题,急,在线等
- 论文拿优秀,散分150!
- 这难道是jb7的bug吗?大家进来看看,帮up也有分,谢谢!!
- 条件查询,请各位老哥帮个忙
- 请高手帮忙,resin2.0.9中怎样配置servlet啊?在线等!
- 是不是每次修改struts-config.xml都要重起tomcat呀,真是很烦
jdom的Element类有很多remove方法的
如果在使用这些remove方法的时候有什么困难的话
请把问题说得更具体些
不然让人都不知道该如何回答