code: public final Element getOwnerElement()
    {
      if (getNodeType() != Node.ATTRIBUTE_NODE)
        return null;
      // In XPath and DTM data models, unlike DOM, an Attr's parent is its
      // owner element.
      int newnode = dtm.getParent(node);
      return (newnode == DTM.NULL) ? null : (Element)(dtm.getNode(newnode));
    }
docs: Get the owner element of an attribute.
  
  
  @see org.w3c.dom.Attr as of DOM Level 2