Class XMLUtil


  • @Deprecated
    final class XMLUtil
    extends java.lang.Object
    Deprecated.
    Use XMLUtil instead
    This class with handle some simple XML operations.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private XMLUtil()
      Deprecated.
      Utility class, should not be instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String getNodeValue​(org.w3c.dom.Element node)
      Deprecated.
      This will get the text value of an element.
      static org.w3c.dom.Document parse​(java.io.InputStream is)
      Deprecated.
      This will parse an XML stream and create a DOM document.
      • Methods inherited from class java.lang.Object

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

      • XMLUtil

        private XMLUtil()
        Deprecated.
        Utility class, should not be instantiated.
    • Method Detail

      • parse

        public static org.w3c.dom.Document parse​(java.io.InputStream is)
                                          throws java.io.IOException
        Deprecated.
        This will parse an XML stream and create a DOM document.
        Parameters:
        is - The stream to get the XML from.
        Returns:
        The DOM document.
        Throws:
        java.io.IOException - It there is an error creating the dom.
      • getNodeValue

        public static java.lang.String getNodeValue​(org.w3c.dom.Element node)
        Deprecated.
        This will get the text value of an element.
        Parameters:
        node - The node to get the text value for.
        Returns:
        The text of the node.