Changeset 2169 for TI02-CSML


Ignore:
Timestamp:
14/02/07 15:06:19 (13 years ago)
Author:
domlowe
Message:

added main() method to molesReadWrite.py that lists sschema object model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csml2Moles/molesReadWrite.py

    r2168 r2169  
    303303            newClass=self._create_a_class(className, molesElement) 
    304304            setattr(self,className,newClass) 
     305 
     306 
     307def main(): 
     308    schema = xmlSchema('ndgmetadata1.3.xsd')  
     309        
     310    #print schema.sequences 
     311    for key in schema.sequences: 
     312        print '------------------------------------------------------------------' 
     313        print key 
     314        print schema.sequences[key] 
     315     
     316 
     317  
     318    
     319if __name__=='__main__': 
     320    main() 
Note: See TracChangeset for help on using the changeset viewer.