|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
XMLTag
instance under the current tag.
Document
instance under the current tag
XMLTag
tag hierarchy under the current tag.
Element
instance and its hierarchy under the current tag
XMLTag
instance from the hierarchy under the current tag.
XMLTag tag = XMLDoc.newDocument(true)
.addRoot("root").addTag("a")
.gotoParent().addTag("b")
.gotoParent().addTag("c")
.gotoRoot();
assertEquals(tag.getCurrentTagName(), "root");
for (XMLTag xmlTag : tag.getChilds()) {
if(xmlTag.getCurrentTagName().equals("b")) {
break;
}
}
assertEquals(tag.getCurrentTagName(), "b");
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |