Package org.apache.batik.dom.util
Class XMLSupport
java.lang.Object
org.apache.batik.dom.util.XMLSupport
- All Implemented Interfaces:
XMLConstants
This class provides support for XML features.
- Version:
- $Id: XMLSupport.java 1851346 2019-01-15 13:41:00Z ssteiner $
-
Field Summary
Fields inherited from interface org.apache.batik.constants.XMLConstants
XLINK_HREF_ATTRIBUTE, XLINK_HREF_QNAME, XLINK_NAMESPACE_URI, XLINK_PREFIX, XML_BASE_ATTRIBUTE, XML_BASE_QNAME, XML_CDATA_END, XML_CHAR_AMP, XML_CHAR_APOS, XML_CHAR_GT, XML_CHAR_LT, XML_CHAR_QUOT, XML_CHAR_REF_PREFIX, XML_CHAR_REF_SUFFIX, XML_CLOSE_TAG_END, XML_CLOSE_TAG_START, XML_DEFAULT_VALUE, XML_DOUBLE_DASH, XML_DOUBLE_QUOTE, XML_ENTITY_AMP, XML_ENTITY_APOS, XML_ENTITY_GT, XML_ENTITY_LT, XML_ENTITY_QUOT, XML_EQUAL_QUOT, XML_EQUAL_SIGN, XML_EVENTS_EVENT_ATTRIBUTE, XML_EVENTS_NAMESPACE_URI, XML_ID_ATTRIBUTE, XML_ID_QNAME, XML_LANG_ATTRIBUTE, XML_LANG_QNAME, XML_NAMESPACE_URI, XML_OPEN_TAG_END_CHILDREN, XML_OPEN_TAG_END_NO_CHILDREN, XML_OPEN_TAG_START, XML_PREFIX, XML_PRESERVE_VALUE, XML_PROCESSING_INSTRUCTION_END, XML_SPACE, XML_SPACE_ATTRIBUTE, XML_SPACE_QNAME, XML_TAB, XML_VERSION_10, XML_VERSION_11, XMLNS_NAMESPACE_URI, XMLNS_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static String
getXMLLang
(Element elt) Returns the xml:lang attribute value of the given element.static String
getXMLSpace
(Element elt) Returns the xml:space attribute value of the given element.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.
-
Constructor Details
-
XMLSupport
private XMLSupport()This class does not need to be instanciated.
-
-
Method Details
-
getXMLLang
Returns the xml:lang attribute value of the given element. -
getXMLSpace
Returns the xml:space attribute value of the given element. -
defaultXMLSpace
Strips the white spaces in the given string according to the xml:space attribute recommended behaviour when it has the 'default' value. -
preserveXMLSpace
Strips the white spaces in the given string according to the xml:space attribute recommended behaviour when it has the 'preserve' value.
-