Class XmlUtil


  • public class XmlUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Element getFirstElement​(org.w3c.dom.Document document)
      get first "real" element (ie not the document-rootelement, but the next one
      static java.lang.String getTextContent​(org.w3c.dom.Node element)
      return the text content of an element
      static org.w3c.dom.Document newDocument()  
      static org.w3c.dom.Document parse​(java.io.InputStream in)  
      static org.w3c.dom.Document parse​(org.xml.sax.InputSource in)  
      • Methods inherited from class java.lang.Object

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

      • XmlUtil

        public XmlUtil()
    • Method Detail

      • newDocument

        public static org.w3c.dom.Document newDocument()
        Returns:
        ...
      • parse

        public static org.w3c.dom.Document parse​(java.io.InputStream in)
                                          throws java.lang.RuntimeException
        Parameters:
        in - ...
        Returns:
        ...
        Throws:
        java.lang.RuntimeException - ...
      • parse

        public static org.w3c.dom.Document parse​(org.xml.sax.InputSource in)
                                          throws java.lang.RuntimeException
        Parameters:
        in - ...
        Returns:
        ...
        Throws:
        java.lang.RuntimeException - ...
      • getFirstElement

        public static org.w3c.dom.Element getFirstElement​(org.w3c.dom.Document document)
        get first "real" element (ie not the document-rootelement, but the next one
      • getTextContent

        public static java.lang.String getTextContent​(org.w3c.dom.Node element)
        return the text content of an element