def validate(self, encoding=DEFAULT_ENCODING):
        ff = FakeFile(None)
        # Will raise a ValidationError if not valid.
        # Don't need full backtrace for this type of error.
        try:
            self.emit(ff, encoding)
        except __HOLE__ as err:
            raise ValidationError(err)
dataset/ETHPy150Open kdart/pycopia/XML/pycopia/XML/POM.py/ElementNode.validate