|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Shared interface for creating DOM nodes.
This interface allows different DOM libraries to be used with the NewsMLExplorer; an application should implement this interface to create a DOM tree from a URL string using the techniques of a specific DOM library.
| Method Summary | |
org.w3c.dom.Document |
createDOM()
Construct a new, empty DOM document. |
org.w3c.dom.Document |
createDOM(Reader input,
String baseURL)
Construct a DOM package from the URL provided. |
org.w3c.dom.Document |
createDOM(String url)
Construct a DOM package from the URL provided. |
boolean |
getValidation()
Get the current validation state. |
void |
setValidation(boolean validation)
Require or forbid DTD validation. |
| Method Detail |
public void setValidation(boolean validation)
throws IOException
validation - true to require DTD validation, false to forbid it.IOException - if the implementation does not support
the requested state.NewsMLFactory.setValidation(boolean)public boolean getValidation()
public org.w3c.dom.Document createDOM()
public org.w3c.dom.Document createDOM(String url)
throws IOException
url - A string containing an absolute URL pointing to
an XML document.IOException - If there is an error reading the
document.
public org.w3c.dom.Document createDOM(Reader input,
String baseURL)
throws IOException
input - A character stream containing an XML document.baseUrl - A string containing an absolute URL, to use for
resolving external entity references.IOException - If there is an error reading the
document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||