public class DomReader extends Object
Constructor and Description |
---|
DomReader() |
Modifier and Type | Method and Description |
---|---|
static String |
getAttributeValue(Node node,
String attributeName)
Fetches the value of a given attribute
|
protected static Node |
getChildByAttribute(Node node,
String attributeName,
String attributeValue)
Searches for children that have the given attribute
|
protected static Node |
getChildByName(Node node,
String name)
Searches (recursively) for the first child that has the given name
|
protected static Node |
getChildByNameAndAttribute(Node node,
String name,
String attributeName,
String attributeValue)
Searches for children that have the given name and attribute
|
protected static List<Node> |
getChildrenByName(Node node,
String name)
Searches for all immediate children with the given name
|
static Document |
readDocument(File f)
Constructs one Document from an XML file
|
protected static Node getChildByName(Node node, String name)
protected static List<Node> getChildrenByName(Node node, String name)
protected static Node getChildByAttribute(Node node, String attributeName, String attributeValue)
protected static Node getChildByNameAndAttribute(Node node, String name, String attributeName, String attributeValue)
public static String getAttributeValue(Node node, String attributeName)
public static Document readDocument(File f) throws IOException, SAXException, ParserConfigurationException