Ignore:
Timestamp:
08/12/06 09:38:00 (13 years ago)
Author:
domlowe
Message:

moved xmlSchema() instantiation from init to toXML method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml2MolesStuff/csml2moles.py

    r1694 r1838  
    217217    
    218218    #produce XML again (round trip) 
    219     #tree=cElementTree.ElementTree(file='molesout.xml') 
    220     #dgMeta=MRW.dgMetadata() 
    221     #dgMeta.fromXML(tree.getroot()) 
    222     #molestree=dgMeta.toXML() 
    223     #moles=csml.parser_extra.PrettyPrint(molestree) 
    224     #print '\n \n \n AFTER PARSING' 
    225     #print moles    
    226  
     219    tree=cElementTree.ElementTree(file='molesout.xml') 
     220    dgMeta=MRW.dgMetadata() 
     221    dgMeta.fromXML(tree.getroot()) 
     222    molestree=dgMeta.toXML() 
     223    moles=csml.parser_extra.PrettyPrint(molestree) 
     224    print '\n \n \n AFTER PARSING' 
     225    print moles    
     226    print dir(molestree) 
    227227    
    228228if __name__=='__main__': 
Note: See TracChangeset for help on using the changeset viewer.