缓存org.w3c.dom.Element类型,怎样使用另一个doc的元素
????? 今天对xml报文的头做缓存,第一次直接保存上一次生成好的doc中的Element元素到内存中,发现下次从内存中取出来的Element元素是null。
(代码不能直接使用,只做说明原理用)
缓存的代码
for(int i=0;i<fields.getLength();i++){ this.fields.appendChild(outdoc.importNode(fields.item(i),true)); }?不知道各位有没有更好的方法。
1 楼 iXh 2009-02-20 路过。。。