Class XMLSupport

java.lang.Object
org.apache.batik.dom.util.XMLSupport
All Implemented Interfaces:
XMLConstants

public final class XMLSupport extends Object implements XMLConstants
This class provides support for XML features.
  • Method Details

    • getXMLLang

      public static String getXMLLang(Element elt)
      Returns the xml:lang attribute value of the given element.
    • getXMLSpace

      public static String getXMLSpace(Element elt)
      Returns the xml:space attribute value of the given element.
    • defaultXMLSpace

      public static String defaultXMLSpace(String data)
      Strips the white spaces in the given string according to the xml:space attribute recommended behaviour when it has the 'default' value.
    • preserveXMLSpace

      public static String preserveXMLSpace(String data)
      Strips the white spaces in the given string according to the xml:space attribute recommended behaviour when it has the 'preserve' value.