code: def validate(self, formats_dir="../formats/"):
          
          #TODO: download XSD from web
          if self.inline:
              xmlschema = ElementTree.XMLSchema(ElementTree.parse(StringIO("\n".join(open(formats_dir+"dcoi-dsc.xsd").readlines()))))
              xmlschema.assertValid(self.tree)
              #return xmlschema.validate(self)
          else:
              xmlschema = ElementTree.XMLSchema(ElementTree.parse(StringIO("\n".join(open(formats_dir+"dutchsemcor-standalone.xsd").readlines()))))
              xmlschema.assertValid(self.tree)
docs: checks if the document is valid