Hi All, I would like to extract XML from a table and then manipulate it.
The process being something like this in horrible pseudo-code: my table fields = id:1, name:Alan, price:5 xmldata = table.xml transform xmldata, e.g. xmldata.replace_element_name('name', 'newname') xmldata.replace_element_value('price', '8') return xmldata Output: <item> <id>1</id> <newname>Alan</newname> <price>8</price> </ item> I call my controller in browser and receive my transformed XML I guess it might use .xml and TAG for example. Has anyone got an example of doing what I want? Maybe I have to use lxml or even beautiful soup, but it seems that web2py already has all the ingredients. Regards, David