TreeWalker tw = new TreeWalkerImpl(dom, NodeFilter.SHOW_ALL, null, false);
assertEquals("a", tw.getCurrentNode().getLocalName());
assertEquals("b", tw.nextNode().getLocalName());
assertEquals("c", tw.nextNode().getLocalName());
assertEquals("d", tw.nextNode().getLocalName());
assertEquals("e", tw.nextNode().getLocalName());
assertEquals("f", tw.nextNode().getLocalName());
assertEquals("g", tw.nextNode().getLocalName());
assertEquals("h", tw.nextNode().getLocalName());
assertEquals("i", tw.nextNode().getLocalName());