source: TI03-DataExtractor/branches/old_stuff/dx_source/for_usr_local/dx/testScripts/testDRXMLParser.py @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/dx_source/for_usr_local/dx/testScripts/testDRXMLParser.py
Revision 793, 763 bytes checked in by astephen, 14 years ago (diff)

Put all the old code in the old_stuff branch.

Line 
1#   Copyright (C) 2004 CCLRC & NERC( Natural Environment Research Council ).
2#   This software may be distributed under the terms of the
3#   Q Public License, version 1.0 or later. http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
4
5import sys
6sys.path.append("..")
7from dxrmlHandler import *
8
9xmlfile="dxrmlTester.xml"
10
11request={"northernExtent":30, "southernExtent":50,
12         "datasetGroup_1":"DG1", "dataset_1":"DSet1",
13         "variable_1":"Myvar", "startDateTime_1":"1999-01-01T00:00:00",
14         "endDateTime_1":"2000-12-31T12:00:00",
15         "datasetGroup_2":"DG1", 
16         "variable_2":"Myvar", "startDateTime_2":"1999-01-01T00:00:00",
17         "endDateTime_2":"2000-12-31T12:00:00",}
18
19g=DXRMLGenerator(request)
20print g.xmlString
21g.writeToFile("testScripts/testDXRMLOutput.xml")
Note: See TracBrowser for help on using the repository browser.