Methods Summary |
---|
public java.lang.Object | getAttribute(java.lang.String name)
throw new IllegalArgumentException(name);
|
public boolean | getFeature(java.lang.String name)
if (name == null) {
throw new NullPointerException();
}
if (NAMESPACES.equals(name)) {
return isNamespaceAware();
} else if (VALIDATION.equals(name)) {
return isValidating();
} else {
throw new ParserConfigurationException(name);
}
|
public javax.xml.parsers.DocumentBuilder | newDocumentBuilder()
if (isValidating()) {
throw new ParserConfigurationException(
"No validating DocumentBuilder implementation available");
}
/**
* TODO If Android is going to support a different DocumentBuilder
* implementations, this should be wired here. If we wanted to
* allow different implementations, these could be distinguished by
* a special feature (like http://www.org.apache.harmony.com/xml/expat)
* or by throwing the full SPI monty at it.
*/
DocumentBuilderImpl builder = new DocumentBuilderImpl();
builder.setIgnoreComments(isIgnoringComments());
builder.setIgnoreElementContentWhitespace(
isIgnoringElementContentWhitespace());
builder.setNamespaceAware(isNamespaceAware());
// TODO What about expandEntityReferences?
return builder;
|
public void | setAttribute(java.lang.String name, java.lang.Object value)
throw new IllegalArgumentException(name);
|
public void | setFeature(java.lang.String name, boolean value)
if (name == null) {
throw new NullPointerException();
}
if (NAMESPACES.equals(name)) {
setNamespaceAware(value);
} else if (VALIDATION.equals(name)) {
setValidating(value);
} else {
throw new ParserConfigurationException(name);
}
|