Ignore:
Timestamp:
30/06/08 12:11:41 (12 years ago)
Author:
cbyrom
Message:

Fix PrettyPrint? to cast elem data as string, before attempting to
call strip() on it (to avoid problems when handling, e.g. ints).
Add ndgmetadata1.3.xsd to csml package and extend molesReadWrite to
use this version, to avoid the need to having to copy this file
locally on each use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/parser_extra.py

    r4003 r4034  
    5959                        return '' 
    6060                else: 
    61                         return elem.strip() 
     61                        # just in case the elem is another simple type - e.g. int - wrapper it as a string 
     62                        return str(elem).strip() 
    6263        strAttrib='' 
    6364        for att in elem.attrib: 
Note: See TracChangeset for help on using the changeset viewer.