• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 87 for Xml/Validator/Backend/OmeValidator.py

Show
Ignore:
Timestamp:
09/12/07 11:06:38 (15 months ago)
Author:
andrew
Message:

Added check to set the valid flag

Files:
1 modified

  • Xml/Validator/Backend/OmeValidator.py (modified) (4 diffs)

Legend:

Unmodified
Added
Removed
  • Xml/Validator/Backend/OmeValidator.py

    r80 r87  
    187187                # mark xlm as having been parsed 
    188188                self.hasParsedXml = True 
    189                  
     189 
    190190                # look at file for Ids, Refs, and namespaces 
    191191                self.scanForIdsAndNamespace(inFile) 
    … …  
    193193                # check the xml is valid aginst it's schema 
    194194                self.validateAgainstSchema() 
     195                 
     196                if self.isXsdValid is True and len(self.errorList) is 0 : 
     197                        self.isOmeXml = True 
    195198         
    196199        def validateAgainstSchema(self): 
    … …  
    541544 
    542545if __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"]: 
    544549                print "============ XML file %s ============ " % aFilename 
    545550                print XmlReport.validateFile(aFilename) 
    … …  
    552557         
    553558        print "============" 
    554  
    555  

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/