Package de.pdark.decentxml
Class XMLUtils
- java.lang.Object
-
- de.pdark.decentxml.XMLUtils
-
public class XMLUtils extends java.lang.ObjectUtility methods when working with XML.- Since:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description XMLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringescapeXMLText(java.lang.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 java.lang.StringunescapeXMLAttributeValue(java.lang.String text)Unescape '<', '>', '&', '"' and '''static java.lang.StringunescapeXMLText(java.lang.String text)Unescape '<', '>' and '&'
-
-
-
Method Detail
-
escapeXMLText
public static java.lang.String escapeXMLText(java.lang.String text)
Escape '<', '>' and '&'
-
unescapeXMLText
public static java.lang.String unescapeXMLText(java.lang.String text)
Unescape '<', '>' and '&'
-
unescapeXMLAttributeValue
public static java.lang.String unescapeXMLAttributeValue(java.lang.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)
-
-