de.pdark.decentxml
Class XMLUtils

java.lang.Object
  extended by de.pdark.decentxml.XMLUtils

public class XMLUtils
extends java.lang.Object

Utility methods when working with XML.

Since:
1.1
Author:
digulla

Constructor Summary
XMLUtils()
           
 
Method Summary
static java.lang.String escapeXMLText(java.lang.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 java.lang.String unescapeXMLAttributeValue(java.lang.String text)
          Unescape '<', '>', '&', '"' and '''
static java.lang.String unescapeXMLText(java.lang.String text)
          Unescape '<', '>' and '&'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtils

public XMLUtils()
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)


Copyright © 2008-2011. All Rights Reserved.