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.
Version:
$Id: XMLSupport.java 1851346 2019-01-15 13:41:00Z ssteiner $
  • Constructor Details

    • XMLSupport

      private XMLSupport()
      This class does not need to be instanciated.
  • 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.