Changeset 127
- Timestamp:
- 01/08/08 16:57:42 (8 months ago)
- Files:
-
- 1 modified
-
Xml/Validator/Backend/OmeValidator.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Xml/Validator/Backend/OmeValidator.py
r121 r127 245 245 246 246 # 247 # print self.theDom.toprettyxml()247 # print self.theDom.toprettyxml() 248 248 249 249 # building the document tree from the input xml … … 258 258 try: 259 259 schema.validate(document) 260 err = schema.error_log.last_error261 if err:260 self.isXsdValid = True 261 for err in schema.error_log: 262 262 self.isXsdValid = False 263 263 self.errorList.append(ParseMessage(None, err.line, None, "XSD", None, err.message)) 264 else:265 self.isXsdValid = True266 264 except etree.XMLSchemaValidateError: 267 265 self.isXsdValid = False
