Class Dom4j

java.lang.Object
io.jmix.core.common.util.Dom4j

public final class Dom4j extends Object
Helper class for XML parsing.
  • Method Details

    • readDocument

      public static org.dom4j.Document readDocument(String xmlString)
    • readDocument

      public static org.dom4j.Document readDocument(String xmlString, org.dom4j.io.SAXReader xmlReader)
    • readDocument

      public static org.dom4j.Document readDocument(Reader reader)
    • readDocument

      public static org.dom4j.Document readDocument(Reader reader, org.dom4j.io.SAXReader xmlReader)
    • getParser

      public static SAXParser getParser()
    • readDocument

      public static org.dom4j.Document readDocument(InputStream stream)
    • readDocument

      public static org.dom4j.Document readDocument(InputStream stream, org.dom4j.io.SAXReader xmlReader)
    • readDocument

      public static org.dom4j.Document readDocument(File file)
    • readDocument

      public static org.dom4j.Document readDocument(File file, org.dom4j.io.SAXReader xmlReader)
    • writeDocument

      public static String writeDocument(org.dom4j.Document doc, boolean prettyPrint)
    • writeDocument

      public static void writeDocument(org.dom4j.Document doc, boolean prettyPrint, Writer writer)
    • writeDocument

      public static void writeDocument(org.dom4j.Document doc, boolean prettyPrint, OutputStream stream)
    • storeMap

      public static void storeMap(org.dom4j.Element parentElement, Map<String,String> map)
    • loadMap

      public static void loadMap(org.dom4j.Element mapElement, Map<String,String> map)
    • walkAttributesRecursive

      public static void walkAttributesRecursive(org.dom4j.Element element, Dom4j.ElementAttributeVisitor visitor)
    • walkAttributes

      public static void walkAttributes(org.dom4j.Element element, Dom4j.ElementAttributeVisitor visitor)