source: CMIP6dreq/trunk/dreqPy/examples/ex101.py @ 738

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreq/trunk/dreqPy/examples/ex101.py@738
Revision 738, 180 bytes checked in by mjuckes, 4 years ago (diff)

for python3

Line 
1import  sys, os, xml
2import xml.dom.minidom
3
4xmlf = sys.argv[1]
5doc = xml.dom.minidom.parse( xmlf )
6
7ver = doc.getElementsByTagName('pav:version')[0]
8print ( ver.firstChild.data )
Note: See TracBrowser for help on using the repository browser.