Changeset 1736 for TI02-CSML/branches


Ignore:
Timestamp:
22/11/06 10:25:39 (13 years ago)
Author:
domlowe
Message:

namespace support working better #2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/branches/CSML2/csParser.py

    r1735 r1736  
    55'''CSML v2 Parser '''  
    66 
    7 #note to self. Not sure we need self.NAMESPACE as namespace info is held in the element name. 
    8  
    9 etree._namespace_map.update({ 
    10     'http://www.opengis.net/om': 'om',  'http://www.opengis.net/gml': 'gml','http://ndg.nerc.ac.uk/csml' : 'csml', 'http://www.w3.org/1999/xlink':'xlink'}) 
     7#this map needs updating for V2 
     8etree._namespace_map.update({'http://www.opengis.net/om': 'om',  'http://www.opengis.net/gml': 'gml','http://ndg.nerc.ac.uk/csml' : 'csml', 'http://www.w3.org/1999/xlink':'xlink'}) 
    119 
    1210 
     
    151149    #print csmltree 
    152150    csmlout=csml.parser_extra.PrettyPrint(csmltree) 
     151    csmlout=csml.parser_extra.removeInlineNS(csmlout) 
    153152    print csmlout 
    154153    #print dir(csmlout) 
Note: See TracChangeset for help on using the changeset viewer.