Changeset 87 for Xml/Validator/Backend/OmeValidator.py
- Timestamp:
- 09/12/07 11:06:38 (15 months ago)
- Files:
-
- 1 modified
-
Xml/Validator/Backend/OmeValidator.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Xml/Validator/Backend/OmeValidator.py
r80 r87 187 187 # mark xlm as having been parsed 188 188 self.hasParsedXml = True 189 189 190 190 # look at file for Ids, Refs, and namespaces 191 191 self.scanForIdsAndNamespace(inFile) … … 193 193 # check the xml is valid aginst it's schema 194 194 self.validateAgainstSchema() 195 196 if self.isXsdValid is True and len(self.errorList) is 0 : 197 self.isOmeXml = True 195 198 196 199 def validateAgainstSchema(self): … … 541 544 542 545 if __name__ == '__main__': 543 for aFilename in ["samples/sdub.ome", "samples/tiny.ome", "samples/broke.ome"]: 546 for aFilename in ["samples/completesamplenopre.xml","samples/completesample.xml","samples/completesamplenoenc.xml", 547 "samples/sdub.ome", "samples/sdub-fix.ome", "samples/sdub-fix-pre.ome", 548 "samples/tiny.ome", "samples/broke.ome"]: 544 549 print "============ XML file %s ============ " % aFilename 545 550 print XmlReport.validateFile(aFilename) … … 552 557 553 558 print "============" 554 555
