当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 请大家指点,登录sql server 2000 企业管理器时如何才能实现用户口令的输入后才能登入,我现在是无条件就进入了,谢谢 ......
 ·生成excel 进程(,100分)    »显示摘要«
    摘要: 我想在asp。net中用到excel进程,但不知道自怎么生成。请大家帮忙。 ......


jdom怎么实现在指定位置插入节点

在jdom中插入节点有哪几种方法?  
  怎么实现在指定位置进行灵活的插入呢?  
  谢谢

NO.1   作者: doway

Node   insertBefore(Node   newChild,   Node   refChild)    
  Inserts   the   node   newChild   before   the   existing   child   node   refChild.    
   
  这是   org.w3c.dom.Node   类型的一个方法,可以在某个指定的节点前插入新节点。jdom   没用过,应该有类似方法。

NO.2   作者: java_augur

Each   of   these   methods   adds   the   new   code   to   the   end   of   the   Element   list.To   insert   a   node   in   a   different   position,ull   have   to   retrieve   the   List   object   itself.For   example,the   following   code   fragment   creats   the   same   channel   element   by   inserting   all   the   child   nodes   in   reverse   order   at   the   beginning   of   the   list   using   the   add(int   index,object   o)   method:  
  Element   channel   =   new   Element("channel");  
  Element   link   =   new   Element("link");  
  Element   description   =   new   Element("description");  
   
  List   content   =   channel.getContent();  
  content.add(0,description);  
  content.add(0,link);  
 


    摘要: http://community.csdn.net/expert/topic/4253/4253716.xml?temp=.1836969 晚上有点事不能上网.能在这里说一下吗? 谢谢你~! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE