예제 #1
0
 public void run() {
   // NxNode node =
   // parser.root().get("Map").get("Map").get("Map1").get("105060000.img").get("1").get("tile");
   NxNode node = parser.node("Map/Map/Map1/105060000.img/1/tile");
   for (NxNode subnode : node.children()) {
     if (node.get(subnode.name()) != subnode)
       throw new IllegalStateException("Indexed subnode does not equal iterated subnode");
   }
 }
예제 #2
0
 private void recurse(NxNode node) {
   for (NxNode subnode : node.children()) {
     recurse(subnode);
   }
 }