Class XMLSupport

  • All Implemented Interfaces:
    XMLConstants

    public final class XMLSupport
    extends java.lang.Object
    implements XMLConstants
    This class provides support for XML features.
    Version:
    $Id: XMLSupport.java 1851346 2019-01-15 13:41:00Z ssteiner $
    • Constructor Detail

      • XMLSupport

        private XMLSupport()
        This class does not need to be instanciated.
    • Method Detail

      • getXMLLang

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

        public static java.lang.String getXMLSpace​(org.w3c.dom.Element elt)
        Returns the xml:space attribute value of the given element.
      • defaultXMLSpace

        public static java.lang.String defaultXMLSpace​(java.lang.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 java.lang.String preserveXMLSpace​(java.lang.String data)
        Strips the white spaces in the given string according to the xml:space attribute recommended behaviour when it has the 'preserve' value.