|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.nc2.util.xml.Parse
public class Parse
Miscellaneous XML parsing methods created Jul 3, 2007
| Constructor Summary | |
|---|---|
Parse()
|
|
| Method Summary | |
|---|---|
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.jdom.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parse()
| Method Detail |
|---|
public static org.jdom.Element readRootElement(String location)
throws IOException
location - the URL location
IOException - on read errorpublic static String cleanCharacterData(String text)
text - check this
public static String quoteXmlContent(String x)
x - string to quote
public static String unquoteXmlContent(String x)
x - string to quote
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||