Class XmlHelper


  • public class XmlHelper
    extends java.lang.Object
    Provide 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.String getTextContent​(org.w3c.dom.Node node)
      based on public Java5 javadoc of org.w3c.dom.Node.getTextContent method
      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.
      static void setTextContent​(org.w3c.dom.Node node, java.lang.String text)
      based on public Java5 javadoc of org.w3c.dom.Node.setTextContent method
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlHelper

        public XmlHelper()
    • 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