public class Parse
extends java.lang.Object
| Constructor and Description |
|---|
Parse() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
cleanCharacterData(java.lang.String text)
Make sure that text is XML safe
|
static java.lang.String |
quoteXmlContent(java.lang.String x)
Replace special characters with entities for XML attributes.
|
static org.jdom2.Element |
readRootElement(java.lang.String location)
Read an XML Document from a URL and return the root element.
|
static java.lang.String |
unquoteXmlContent(java.lang.String x)
Reverse XML quoting to recover the original string.
|
public static org.jdom2.Element readRootElement(java.lang.String location)
throws java.io.IOException
location - the URL locationjava.io.IOException - on read errorpublic static java.lang.String cleanCharacterData(java.lang.String text)
text - check thispublic static java.lang.String quoteXmlContent(java.lang.String x)
x - string to quotepublic static java.lang.String unquoteXmlContent(java.lang.String x)
x - string to quote