- java.lang.Object
-
- org.scijava.meta.XML
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcdata(String expression)Obtains the CDATA identified by the given XPath expression.Stringpath()Gets the path to the XML document, or null if none.StringtoString()
-
-
-
Constructor Detail
-
XML
public XML(File file) throws IOException
Parses XML from the given file.- Throws:
IOException
-
XML
public XML(URL url) throws IOException
Parses XML from the given URL.- Throws:
IOException
-
XML
public XML(InputStream in) throws IOException
Parses XML from the given input stream.- Throws:
IOException
-
XML
public XML(String s) throws IOException
Parses XML from the given string.- Throws:
IOException
-
-