def validateOneElement(self, ctxt, elem):
        """Try to validate a single element and it's attributes,
          basically it does the following checks as described by the
          XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC:
          Required Attribute ] Then call xmlValidateOneAttribute()
          for each attribute present.  The ID/IDREF checkings are
           done separately """
        if ctxt is None: ctxt__o = None
        else: ctxt__o = ctxt._o
        if elem is None: elem__o = None
        else: elem__o = elem._o
        ret = libxml2mod.xmlValidateOneElement(ctxt__o, self._o, elem__o)
        return ret