public final class XMLSupport extends java.lang.Object implements 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
Modifier and Type | Method and Description |
---|---|
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.
|
static java.lang.String |
getXMLLang(Element elt)
Returns the xml:lang attribute value of the given element.
|
static java.lang.String |
getXMLSpace(Element elt)
Returns the xml:space attribute value of the given element.
|
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.
|
public static java.lang.String getXMLLang(Element elt)
public static java.lang.String getXMLSpace(Element elt)
public static java.lang.String defaultXMLSpace(java.lang.String data)
public static java.lang.String preserveXMLSpace(java.lang.String data)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.