halo all,

i am trying to save an XML file, in which there is a tag has an attribute as float type. the console says :

File "C:\Python25\Lib\site-packages\elementtree\ElementTree.py", line 813, in _raise_serialization_error
"cannot serialize %r (type %s)" % (text, type(text).__name__)
TypeError: cannot serialize 1192998182.3900001 (type float)

i got this float by time.time().
How can i change the type or is there any other way to write it into xml file?

btw, what is the reason for 'cannot serialize' ?

Thanks a lot