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

Context Navigation

  • ← Previous Change
  • Next Change →

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

Show
Ignore:
Timestamp:
01/08/08 16:57:42 (11 months ago)
Author:
andrew
Message:

Fixed reporting of multipal errors from XML schema validation.

Files:
1 modified

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

Legend:

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

    r121 r127  
    245245                 
    246246                # 
    247                 #print self.theDom.toprettyxml() 
     247                # print self.theDom.toprettyxml() 
    248248                 
    249249                # building the document tree from the input xml 
    … …  
    258258                try: 
    259259                        schema.validate(document) 
    260                         err = schema.error_log.last_error 
    261                         if err: 
     260                        self.isXsdValid = True 
     261                        for err in schema.error_log: 
    262262                                self.isXsdValid = False 
    263263                                self.errorList.append(ParseMessage(None, err.line, None, "XSD", None, err.message)) 
    264                         else: 
    265                                 self.isXsdValid = True 
    266264                except etree.XMLSchemaValidateError: 
    267265                        self.isXsdValid = False 

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/