|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.utils.XmlUtils
public class XmlUtils
Utils class for escaping xml strings
| Constructor Summary | |
|---|---|
XmlUtils()
|
|
| Method Summary | |
|---|---|
static String |
escape(String str)
Escapes the characters in a String. |
static Document |
getDomFromString(String str)
Parses a string and build a DOM |
String |
unescape(String str)
Unescapes the entities in a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlUtils()
| Method Detail |
|---|
public static String escape(String str)
Escapes the characters in a String.
For example, if you have called addEntity("foo", 0xA1), escape("¡") will return "&foo;"
str - The String to escape.
String.public String unescape(String str)
Unescapes the entities in a String.
For example, if you have called addEntity("foo", 0xA1), unescape("&foo;") will return "¡"
str - The String to escape.
String.public static Document getDomFromString(String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||