Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- appendFileAsNode(Node, String, Map<String, String>) - Method in class com.mediaworx.xmlutils.XmlHelper
-
parses and appends the content of a file as a child node to the given parent node
- appendNode(Node, Node) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Appends a new child node to a parent node.
C
- cleanEmptyTextNodes(Node) - Static method in class com.mediaworx.xmlutils.XmlHelper
-
Removes text nodes that are empty or contain whitespace only if the parent node has at least one child of any of the following types: ELEMENT, CDATA, COMMENT.
- com.mediaworx.xmlutils - package com.mediaworx.xmlutils
D
- DEFAULT_ENCODING - Static variable in class com.mediaworx.xmlutils.XmlHelper
-
Default encoding that is used if no encoding is given
G
- getIntValueForXpath(Node, String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Retrieves the content of the node at the given XPath as int.
- getNodeListForXPath(Node, String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Retrieves the NodeList for the given XPath from the given ancestor Node.
- getSingleNodeForXPath(Node, String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Retrieves a single node at a given XPath from the given ancestor node.
- getStringValueForXpath(Node, String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Retrieves the String content of a node at the given XPath.
- getXmlStringFromDocument(Document, String[]) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Converts the document to a formatted XML String (indentation level is 4) using default encoding (UTF-8).
- getXmlStringFromDocument(Document, String[], String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Converts the document to a formatted XML String (indentation level is 4) using the given encoding.
P
- parseFile(File) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Parses the XML content of the file at the given path using the default encoding (UTF-8).
- parseFile(File, Map<String, String>) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Parses the XML content of the file at the given path using the default encoding (UTF-8).
- parseFile(File, Map<String, String>, String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Parses the XML content of the file at the given path using the default encoding (UTF-8).
- parseFile(String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Parses the XML content of the file at the given path using the default encoding (UTF-8).
- parseFile(String, Map<String, String>) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Parses the XML content of the file at the given path using the default encoding (UTF-8).
- parseFile(String, Map<String, String>, String) - Method in class com.mediaworx.xmlutils.XmlHelper
-
Parses the XML content of the file at the given path using the given encoding.
X
- XmlHelper - Class in com.mediaworx.xmlutils
-
Class used to create helper objects that simplify parsing and modifying XML files.
- XmlHelper() - Constructor for class com.mediaworx.xmlutils.XmlHelper
-
Creates and initializes a new XmlHelper instance.
All Classes and Interfaces|All Packages|Constant Field Values