org.apache.batik.dom.util

Class XMLSupport

public final class XMLSupport extends Object implements XMLConstants

This class provides support for XML features.
Method Summary
static StringdefaultXMLSpace(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 StringgetXMLLang(Element elt)
Returns the xml:lang attribute value of the given element.
static StringgetXMLSpace(Element elt)
Returns the xml:space attribute value of the given element.
static StringpreserveXMLSpace(String data)
Strips the white spaces in the given string according to the xml:space attribute recommended behaviour when it has the 'preserve' value.

Method Detail

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.

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.

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.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.