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 String
escapeXMLText(String text)
Escape '<', '>' and '&'static boolean
isAttribute(Node n)
static boolean
isAttributeType(XMLTokenizer.Type t)
static boolean
isElement(Node n)
static boolean
isElementType(XMLTokenizer.Type t)
static boolean
isText(Node n)
static boolean
isTextType(XMLTokenizer.Type t)
static String
unescapeXMLAttributeValue(String text)
Unescape '<', '>', '&', '"' and '''static String
unescapeXMLText(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)
-
-