This method of the Document class contains the following signatures:
load(String urlstr)
load(URL url)
load(InputStream in)
Loads the document from the given URL string.
public void load(String urlstr) throws ParseException;
urlstr | The URL specifying the address of the document. |
ParseException if the file contains errors.
Loads the document from the given URL.
public void load(URL url) throws ParseException;
url | The URL string. |
ParseException if a syntax error is found.
Loads the document using the given input stream. This is useful if you have the XML data already in memory.
public void load(InputStream in) throws ParseException;
in | The input stream. |
ParseException when a syntax error is found.