public class XMLStringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getXMLValidString(String input)
Replace XML invalid chars with one white space.
|
static String |
getXMLValidString(String input,
boolean replace,
char replacement)
Remove or replace XML invalid chars from input.
|
static boolean |
isXMLValid(char c)
Checker for XML valid character.
|
public static String getXMLValidString(String input)
input - public static String getXMLValidString(String input, boolean replace, char replacement)
input - replace - Whether or not to replace invalid characters by replacementreplacement - The character to replace any invalid character foundisXMLValid(char)public static boolean isXMLValid(char c)
Checker for XML valid character.
The Valid XML char is one of:
#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
c - The char to test.true if c is one of:Copyright © 2021 Project Mixer2. All rights reserved.