Changeset 2204
- Timestamp:
- 22/02/07 10:41:43 (14 years ago)
- Location:
- TI02-CSML/trunk/csml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/Examples/Parsing/basictest.py
r2049 r2204 14 14 ####################################################### 15 15 # 1. Test parsing from CSML file 16 tree = ElementTree(file=' Examples/parsing/example.xml')16 tree = ElementTree(file='/gridseries/testout.xml') 17 17 #tree = ElementTree(file='nagridseries.xml') 18 18 #tree = ElementTree(file='bodc.xml') … … 26 26 27 27 #resolve references: 28 #dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences()28 dataset=parser_extra.ParserPostProcessor(dataset).resolveReferences() 29 29 30 30 #This creates a new CSML document string from the CSML objects in memory. -
TI02-CSML/trunk/csml/Examples/Parsing/demoCreateV2.py
r2190 r2204 4 4 5 5 ######################################### 6 ## construction of CSML objects ##6 ## construction of CSML objects ## 7 7 ######################################### 8 8 -
TI02-CSML/trunk/csml/csmllibs/csmlxlink.py
r2040 r2204 44 44 usage=csElement.arcrole.split('#')[0] 45 45 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.CHILDREN50 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' 52 52 53 53 return csDocument
Note: See TracChangeset
for help on using the changeset viewer.