Package de.pdark.decentxml
Class XMLUtils
- java.lang.Object
-
- de.pdark.decentxml.XMLUtils
-
public class XMLUtils extends Object
Utility methods when working with XML.- Since:
- 1.1
- Author:
- digulla
-
-
Constructor Summary
Constructors Constructor Description XMLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringescapeXMLText(String text)Escape '<', '>' and '&'static booleanisAttribute(Node n)static booleanisAttributeType(XMLTokenizer.Type t)static booleanisElement(Node n)static booleanisElementType(XMLTokenizer.Type t)static booleanisText(Node n)static booleanisTextType(XMLTokenizer.Type t)static StringunescapeXMLAttributeValue(String text)Unescape '<', '>', '&', '"' and '''static StringunescapeXMLText(String text)Unescape '<', '>' and '&'
-
-
-
Method Detail
-
unescapeXMLAttributeValue
public static String unescapeXMLAttributeValue(String text)
Unescape '<', '>', '&', '"' and '''
-
isElement
public static boolean isElement(Node n)
-
isElementType
public static boolean isElementType(XMLTokenizer.Type t)
-
isAttribute
public static boolean isAttribute(Node n)
-
isAttributeType
public static boolean isAttributeType(XMLTokenizer.Type t)
-
isText
public static boolean isText(Node n)
-
isTextType
public static boolean isTextType(XMLTokenizer.Type t)
-
-