public interface Parser extends Component
| Modifier and Type | Method and Description |
|---|---|
Document |
create()
Create a new empty DOM Document object.
|
Document |
parse(InputSource in)
Parse the specified InputSource.
|
Document |
parse(URL url)
Parse the specified InputSource.
|
Document parse(InputSource in) throws IOException, CreationException
in - The InputSource to parse.IOException - If an I/O error occourred accessing the specified
System-ID.CreationException - If an error occourred parsing the document.Document parse(URL url) throws IOException, CreationException
in - The InputSource to parse.IOException - If an I/O error occourred accessing the specified
System-ID.CreationException - If an error occourred parsing the document.Document create()