Package ucar.nc2.util.xml
Class Parse
- java.lang.Object
-
- ucar.nc2.util.xml.Parse
-
public class Parse extends Object
Miscellaneous XML parsing methods created Jul 3, 2007
-
-
Constructor Summary
Constructors Constructor Description Parse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcleanCharacterData(String text)Make sure that text is XML safestatic org.jdom2.ElementreadRootElement(String location)Read an XML Document from a URL and return the root element.
-
-
-
Method Detail
-
readRootElement
public static org.jdom2.Element readRootElement(String location) throws IOException
Read an XML Document from a URL and return the root element.- Parameters:
location- the URL location- Returns:
- the root element of the Document
- Throws:
IOException- on read error
-
-