class Node implements Cloneable {

    public Document ownerDocument() {
        if (this instanceof Document)
            return (Document) this;
        else if (parentNode == null)
            return null;
        else
            return parentNode.ownerDocument();
    }

    protected  Node(String baseUri, Attributes attributes);
    protected  Node(String baseUri);
    protected  Node();

}