Package org.apache.felix.obrplugin
Class XmlHelper
- java.lang.Object
-
- org.apache.felix.obrplugin.XmlHelper
-
public class XmlHelper extends java.lang.ObjectProvide XML helper methods to support pre-Java5 runtimes
-
-
Constructor Summary
Constructors Constructor Description XmlHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetTextContent(org.w3c.dom.Node node)based on public Java5 javadoc of org.w3c.dom.Node.getTextContent methodprivate static java.lang.StringmergeTextContent(org.w3c.dom.NodeList nodes)based on the following quote from public Java5 javadoc of org.w3c.dom.Node.getTextContent method: "concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes.static voidsetTextContent(org.w3c.dom.Node node, java.lang.String text)based on public Java5 javadoc of org.w3c.dom.Node.setTextContent method
-
-
-
Method Detail
-
getTextContent
public static java.lang.String getTextContent(org.w3c.dom.Node node)
based on public Java5 javadoc of org.w3c.dom.Node.getTextContent method
-
mergeTextContent
private static java.lang.String mergeTextContent(org.w3c.dom.NodeList nodes)
based on the following quote from public Java5 javadoc of org.w3c.dom.Node.getTextContent method: "concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the node has no children"
-
setTextContent
public static void setTextContent(org.w3c.dom.Node node, java.lang.String text)based on public Java5 javadoc of org.w3c.dom.Node.setTextContent method
-
-