public class XMLUtils
extends java.lang.Object
Constructor and Description |
---|
XMLUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
iSValidXMLText(java.lang.String xml)
Check that string contains valid XML characters.
|
java.lang.String |
stripBadXMLCharacters(java.lang.String xml,
java.lang.String rep)
Strips invalid characters from XML text.
|
public static boolean iSValidXMLText(java.lang.String xml)
xml
- The XML text to check.public java.lang.String stripBadXMLCharacters(java.lang.String xml, java.lang.String rep)
xml
- XML text to check for invalid characters.rep
- Replacement string for invalid characters.