public class XmlHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decode(java.lang.String s)
decode xml-encoded String to a normal String
|
static java.lang.String |
encode(java.lang.String s)
encode a given String to an xml-encoded String
|
static boolean |
isWhitespace(char c)
checks if a given character is a whitespace as defined
by XML1.0 specifications
|
public static final java.lang.String decode(java.lang.String s)
Decode will take both the symbol and hex coded variant of the encoded String
s - String, xml-encoded Stringpublic static final java.lang.String encode(java.lang.String s)
Encode will code only the symboled (apos,quote,lt,gt,amp) characters
s - String, a normal jva Stringpublic static final boolean isWhitespace(char c)
c -