Version 1.67.2 (2009-09-28 16:29:33)
On Oct 20, 6:32 pm, mdipierro <[email protected]> wrote:
> This seems to have already be taken care of long ago. Which web2py
> version are you using?
>
> Massimo
>
> On Oct 20, 8:18 am, mdipierro <[email protected]> wrote:
>
> > This is a good point. There should be a <root> and it needs to be
> > default. I will make sure I add this to 1.68
>
> > On Oct 15, 1:55 am, Adi <[email protected]> wrote:
>
> > > 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---