Changeset 2204 for TI02-CSML/trunk/csml


Ignore:
Timestamp:
22/02/07 10:41:43 (13 years ago)
Author:
domlowe
Message:

resolving conflicts

Location:
TI02-CSML/trunk/csml
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/Examples/Parsing/basictest.py

    r2049 r2204  
    1414####################################################### 
    1515# 1. Test parsing from CSML file 
    16 tree = ElementTree(file='Examples/parsing/example.xml') 
     16tree = ElementTree(file='/gridseries/testout.xml') 
    1717#tree = ElementTree(file='nagridseries.xml') 
    1818#tree = ElementTree(file='bodc.xml') 
     
    2626 
    2727#resolve references:  
    28 #dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 
     28dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 
    2929 
    3030#This creates a new CSML document string from the CSML objects in memory. 
  • TI02-CSML/trunk/csml/Examples/Parsing/demoCreateV2.py

    r2190 r2204  
    44 
    55  ######################################### 
    6 ##  construction of CSML objects ## 
     6    ##  construction of CSML objects ## 
    77  ######################################### 
    88 
  • TI02-CSML/trunk/csml/csmllibs/csmlxlink.py

    r2040 r2204  
    4444       usage=csElement.arcrole.split('#')[0] 
    4545       elem=csElement.arcrole.split('#')[1] 
    46        if usage=='http://ndg.nerc.ac.uk/xlinkUsage/insert': 
    47            for child in csElement.CHILDREN: 
    48                print getattr(csElement, child).__class__ 
    49                print csElement.CHILDREN 
    50                if getattr(csElement, child).__class__ == elem: 
    51                    print 'yes' 
     46       #if usage=='http://ndg.nerc.ac.uk/xlinkUsage/insert': 
     47           #for child in csElement.CHILDREN: 
     48               ##print getattr(csElement, child).__class__ 
     49               ##print csElement.CHILDREN 
     50               #if getattr(csElement, child).__class__ == elem: 
     51                   #print 'yes' 
    5252     
    5353    return csDocument 
Note: See TracChangeset for help on using the changeset viewer.