ArrayList<Nodes> list = test.getNodeInfo();
if (list != null && list.size() > 0) {
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
out.println("<nodes>");
for (int i = 0; i < list.size(); i++) {
Nodes node = list.get(i);
out.println("<node file_id='" + node.getFile_id()
+ "' parentid='" + node.getParentid()
+ "' hrefAddress='" + node.getHrefAddress()
+ "' userid='" + node.getUser_id() + "'>"
+ node.getFile_name() + "</node>");
System.out.println(node.getFile_name());
}
out.println("</nodes>");
}
System.out.println("调用完成");