Search the web
Sign In
New User? Sign Up
radio-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
New feature for the RSS item call-back   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward  | 
RE: [radio-dev] New feature for the RSS item call-back

Hi Dave,

> I still am wanting a simple spec that says, in the same way
> the existing spec does, what a person writing a callback
> would do to create a hierarchy. I can't read minds, and
> asking me to wade through the code is not fair (and I'm not
>

Sorry, but I've only just realised what it is you have been asking for.
I'm honestly not trying to make you read my code, I wouldn't do that to
anyone ;-) Besides I am very grateful to you for coming back to these
callbacks again, especially now that you're so busy with other things.

I've tried to copy - as far as I can - the style of your own document.
Please let me know if I've missed the mark with this, or whether there
are further changes you would like for me to make.

--------------------------------------------------

Nested sub-elements

Here is what you do if you need to add elements with a nested structure.
As in the <item> callback example for adding an element with attributes
the trick is to use sub-table's. This time you create nested sub-tables
to match the nesting of the elements in the XML - one sub-table for each
element. As before you can use tabs in the table names if you need more
than one element with the same name.

Here's an example callback script:

http://matt.blogs.it/images/elementWithMultipleLevels.jpg

And here's the XML that's generated:

<person id="jsmith03">
<givenName>John</givenName>
<familyName>Smith</familyName>
<secret>
<password>gemini</password>
</secret>
</person>

This technique works at the <channel> or <item> level.

--------------------------------------------------

Notes

1) I've uploaded the script I used for the screen grab to
http://matt.blogs.it/gems/writeRssItemElement.elementWithMultipleLevels.
ftsc in case you want to reformat it.

2) I noticed a problem with the XML generated by my patched
writeRssFile(). It would generate:

<firstName>John
</firstName>

instead of:

<firstName>John</firstName>

I've re-uploaded that object at
http://matt.blogs.it/gems/workspace.writeRssFile.ftsc in case it might
be useful to you.

Regards,

Matt





Sat Apr 12, 2003 9:22 pm

mowerm
Offline Offline
Send Email Send Email

Forward
 | 
Expand Messages Author Sort by Date

Hi Dave, I've been using the new RSS callbacks for a little while now and they have been working well. However today I have begun implementing the "Topics in...
Matt Mower
mowerm
Offline Send Email
Apr 9, 2003
10:19 pm

Hi folks, I had a look at the writeRssFile() code that does the item-level RSS callbacks. As it is it doesn't appear that there is a way to do multiple levels...
Matt Mower
mowerm
Offline Send Email
Apr 10, 2003
8:53 pm

Matt, I just took a look at the code, and the docs. http://backend.userland.com/extendingRadioRssGen I'm looking for a concise statement for the change you're...
Dave Winer
dwiner
Offline Send Email
Apr 12, 2003
8:37 am

Hi Dave, Thanks for looking at this. It is much appreciated. ... Not quite. The change I'm looking for is how, as a script writer, I can have my call-back...
Matt Mower
mowerm
Offline Send Email
Apr 12, 2003
9:39 am

Actually that's the part I understood. Please check out the way it works now. http://backend.userland.com/extendingRadioRssGen How would the change you propose...
Dave Winer
dwiner
Offline Send Email
Apr 12, 2003
11:42 am

Hi Dave, ... Ok. So as far as I can see the spec only covers the case: <item> <elementAtLevel#1/> </> It doesn't seem to mention the case: <item> ...
Matt Mower
mowerm
Offline Send Email
Apr 12, 2003
12:51 pm

I still am wanting a simple spec that says, in the same way the existing spec does, what a person writing a callback would do to create a hierarchy. I can't...
Dave Winer
dwiner
Offline Send Email
Apr 12, 2003
5:06 pm

Hi Dave, ... Sorry, but I've only just realised what it is you have been asking for. I'm honestly not trying to make you read my code, I wouldn't do that to ...
Matt Mower
mowerm
Offline Send Email
Apr 12, 2003
9:23 pm

Matt, I still don't understand it. I understand what you want -- the ability to specify fully general xml structures through the callbacks. Either this ...
Dave Winer
dwiner
Offline Send Email
Apr 13, 2003
1:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help