public class Parse extends Object
Constructor and Description |
---|
Parse() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanCharacterData(String text)
Make sure that text is XML safe
|
static String |
quoteXmlContent(String x)
Replace special characters with entities for XML attributes.
|
static org.jdom2.Element |
readRootElement(String location)
Read an XML Document from a URL and return the root element.
|
static String |
unquoteXmlContent(String x)
Reverse XML quoting to recover the original string.
|
public static org.jdom2.Element readRootElement(String location) throws IOException
location
- the URL locationIOException
- on read errorpublic static String cleanCharacterData(String text)
text
- check thispublic static String quoteXmlContent(String x)
x
- string to quoteCopyright © 1999–2019 UCAR/Unidata. All rights reserved.