public class NodeTraverser extends Object
Node deduplicationNode = NodeTraverser.create(orderxmlDoc).getChildNode("crawl-order", null) .getChildNode("controller", null).getChildNode("map", "write-processors") .getChildNode("newObject", "DeDuplicator").getChildNode("boolean", "enabled").getNode();
Constructor and Description |
---|
NodeTraverser(Document doc) |
Modifier and Type | Method and Description |
---|---|
static NodeTraverser |
create(Document doc) |
NodeTraverser |
getChildNode(String element,
String name)
Will create a NodeTraverser for accessing the indicated node.
|
Node |
getNode() |
public NodeTraverser(Document doc)
public static NodeTraverser create(Document doc)
public NodeTraverser getChildNode(String element, String name)
element
- The tag for the element to make available.name
- A optional name attribute to add to the element if created.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.