Hi, I have an HTTPService which returns a result of a query as xml, which I need to display in Flex 3 frontend.
Here's the simplified code snippet: @service.xml def records(): rows = db().select(db.videodata.id, db.videodata.title, db.videodata.thumbnail, \ db.videodata.flvcopy, db.videodata.description) return rows When I call this service, the results look like this: <item><id>1</id><title>Test Video</title><flvcopy></ flvcopy><thumbnail>videodata.thumbnail. 9c41e14b670ddbd2.61616a74616b315f312e6a7067.jpg</ thumbnail><description>This is the description of a test video</ description></item><item><id>2</id><title>Another File</ title><flvcopy></flvcopy><thumbnail>videodata.thumbnail. 9ef97a75a1aed552.6261636b626c75652e676966.gif</ thumbnail><description>This is a second record for testing</ description></item> Basically there is no "root" element, just query results in every <item></item> tag. This is resulting in parsing error. How can I return the results of the query in a well-formed xml? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---