help in xml and python

Fredrik Lundh fredrik at pythonware.com
Thu Jul 13 07:11:17 EDT 2006


"Kirt" wrote:

>i have a List
>
> modifiedfiles= [['/home/moq/buc/2/mod2.py', '200607131001'],
> ['/home/moq/buc/1/mod2.py', '200607131000'],
> ['/home/moq/buc/1/mod3.py', '200607131001'],
> ['/home/moq/buc/1+mod1.py', '200607131001']]
>
> i have to put them in am xml format like the follg.

not very long ago, "Kepioo" wrote:

> what i want to do :
>
> i have entries, in a list format :[[key1,value],[key2,value],[
> key3,value]], value]
>
> example :
> [["route","23"],["equip","jr2"],["time","3pm"]],"my first value"]
>  [["route","23"],["equip","jr1"],["time","3pm"]],"my second value"]
>  [["route","23"],["equip","jr2"],["time","3pm"]],"my third value"]
>  [["route","24"],["equip","jr2"],["time","3pm"]],"my fourth value"]
>  [["route","25"],["equip","jr2"],["time","3pm"]],'"my fifth value"]
>
>   the [XML] tree i want in the end would be :

which looks rather similar to your post, don't you think?  check that thread
for some ideas:

http://groups.google.com/group/comp.lang.python/browse_frm/thread/c3b3b6cf3613d7b3

</F> 






More information about the Python-list mailing list