next(),
然后getChild("name");
getChild("author");
getChild("publishDate");
getChild("price");
然后getChild("name");
getChild("author");
getChild("publishDate");
getChild("price");
解决方案 »
- type="redirectAction"和type="redirect-Action"有什么不同
- 这个怎么解决啊??
- struts2 上传问题
- 各位参加工作的高手看下!
- hibernate用hql怎么查询某个字段的平均值和总值?
- 菜鸟提问,关于EJB
- [请教]恳求各位推荐几本关于J2EE编程的书籍~~~最好是严格按照J2EE流程开发的书籍
- 问一个taglib的基础问题!!
- 急!!文件上传到web服务器同时提交记录该记录有一个字段保存上传文件的文件名
- 关于jsp页面刷新,触发之前进入jsp页面的action的问题
- 在一个网上看到的,不理解了
- 在用JB中TOMCAT 调试struts WEB程序,启动时调试框中出现红色信息,不知道错在哪里,能帮我看看,该如何处理,在上万分感谢!!
Document doc = null;
Element e;
try {
SAXBuilder builder = new SAXBuilder();
doc = builder.build(new FileInputStream(xmlname)); Element root = doc.getRootElement();
int elementsize = root.getChildren().size();
for (int i = 0; i < elementsize; i++) {
List r = root.getChildren();
e = (Element) r.get(i);
List n = e.getChildren();
for (int j = 0; j < n.size(); j++) {
e = (Element) n.get(j);
System.out.println(e.getText);//这里就是每个节点的值!!!
} }
}
catch (Exception ex) {
ex.printStackTrace();
}
}