Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void buildXMLTree(NodeList temp, List<String> xml) throws Exception{
- xml.add("<"+temp.item(0).getNodeName()+">");
- if(temp.item(0).getChildNodes().getLength() > 0) {
- for(int i=0;i<temp.item(0).getChildNodes().getLength()-1;i++) {
- buildXMLTree(temp.item(i).getChildNodes(), xml);
- }
- }
- xml.add("</"+temp.item(0).getNodeName()+">");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement