DOMInputSourcepublic final class DOMInputSource extends XMLInputSource An XMLInputSource analogue to javax.xml.transform.dom.DOMSource . |
Fields Summary |
---|
private Node | fNode |
Constructors Summary |
---|
public DOMInputSource()
this(null);
| public DOMInputSource(Node node)
super(null, getSystemIdFromNode(node), null);
fNode = node;
| public DOMInputSource(Node node, String systemId)
super(null, systemId, null);
fNode = node;
|
Methods Summary |
---|
public org.w3c.dom.Node | getNode()
return fNode;
| private static java.lang.String | getSystemIdFromNode(org.w3c.dom.Node node)
if (node != null) {
try {
return node.getBaseURI();
}
// If the DOM implementation is DOM Level 2
// then a NoSuchMethodError will be thrown.
// Just ignore it.
catch (NoSuchMethodError e) {
return null;
}
// There was a failure for some other reason
// Ignore it as well.
catch (Exception e) {
return null;
}
}
return null;
| public void | setNode(org.w3c.dom.Node node)
fNode = node;
|
|