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