added helper methods for iterating through next/previous nodes or elements on the DOM

This commit is contained in:
James Strachan
2012-03-23 11:04:51 +00:00
parent b2dd4cd590
commit 19cdb782ac
3 changed files with 57 additions and 25 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class DomBuilderTest() : TestCase() {
fail("Not an Element $grandChild")
}
val children = doc.rootElement.children()
val xml = children.toXmlString()
val xml = nodesToXmlString(children)
println("root element has children: ${xml}")
assertEquals(1, children.size())
}