Class Xml


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

      Constructors 
      Constructor Description
      Xml()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> getAttributeNames​(org.w3c.dom.Element e)  
      static java.util.List<org.w3c.dom.Node> getAttributes​(org.w3c.dom.Element e)  
      static org.w3c.dom.Element getChild​(org.w3c.dom.Element e, java.lang.String name)  
      static java.util.List<org.w3c.dom.Element> getChildren​(org.w3c.dom.Element e)  
      static java.util.List<org.w3c.dom.Element> getChildren​(org.w3c.dom.Element e, java.lang.String name)  
      static java.util.List<org.w3c.dom.Element> getDescendant​(org.w3c.dom.Element e, java.lang.String name)  
      static org.w3c.dom.Document parse​(java.lang.String xml)  
      static java.util.List<org.w3c.dom.Element> toElementList​(org.w3c.dom.NodeList nodeList)  
      • Methods inherited from class java.lang.Object

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

      • Xml

        public Xml()
    • Method Detail

      • getAttributes

        public static java.util.List<org.w3c.dom.Node> getAttributes​(org.w3c.dom.Element e)
      • getAttributeNames

        public static java.util.List<java.lang.String> getAttributeNames​(org.w3c.dom.Element e)
      • getDescendant

        public static java.util.List<org.w3c.dom.Element> getDescendant​(org.w3c.dom.Element e,
                                                                        java.lang.String name)
      • getChild

        public static org.w3c.dom.Element getChild​(org.w3c.dom.Element e,
                                                   java.lang.String name)
      • toElementList

        public static java.util.List<org.w3c.dom.Element> toElementList​(org.w3c.dom.NodeList nodeList)
      • getChildren

        public static java.util.List<org.w3c.dom.Element> getChildren​(org.w3c.dom.Element e)
      • getChildren

        public static java.util.List<org.w3c.dom.Element> getChildren​(org.w3c.dom.Element e,
                                                                      java.lang.String name)
      • parse

        public static org.w3c.dom.Document parse​(java.lang.String xml)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception