如题,谁会阿。急求。
解决方案 »
- i/o问题
- JSP连接MYSQL出错了
- GPS精确定位智力题!!!!!
- 问:main()函数中的args[]数组在何时能用上?有什么作用?
- ++++++++++++在线等候 double形变量的问题。(new)
- 自己无聊做的一个简单的企业进销存管理系统
- 急急急:关于函数参数和返回值的疑惑……
- JET使用问题
- 请问两个JAVA问题,一个很浅、一个可能很深
- 请教:我要从oracle中提取数据,然后再browser中画出来,饼状图或者曲线图,请问如何画?
- 关于java 连接sql2000数据库的问题
- 点击eclipse将其打开的时候, 弹出对话框fail to create java virtual machine
appName = fConfig.getInitParameter("appName");
DocumentBuilderFactory ch = DocumentBuilderFactory.newInstance();
DocumentBuilder db = ch.newDocumentBuilder() ;
Document dom = db.parse(file) ;
NodeList nl_sr = dom.getElementsByTagName("source-rightCode");//按结点名字查找,查找结果为一个List,因为可能有多外同一等级且名为"source-rightCode"的结点
for(int i =0;i<nl_sr.getLength();i++){
Node n_sr = nl_sr.item(i);
NodeList nl_c = n_sr.getChildNodes();//"source-rightCode"的一级子结点
}//更多方法参考Class Document
对应XML<source-rightCode>
<source></source>
<right-code>10111111</right-code>
</source-rightCode>