reading mrss content

View: New views
5 Messages — Rating Filter:   Alert me  

reading mrss content

by Ed_ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I am trying to read in a RSS 2.0 feed and get to the media:content part in one of the items.

How do I do that?

I have a SyndFeed feed;

I get the SyndEntries from it.

How does one get further deeper to get the media content.

thx,

Ed






Now you can invite friends from Facebook and other groups to join you on Windows Live™ Messenger. Add them now!

Parent Message unknown RE: reading mrss content

by Ed_ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I am trying to figure out the module to use. But it does not detect that the yahoo media rss is needed.

The feed I am trying to read in has the following rss spec

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">

getModules() call on SyncFeed - just returns one Module for purl.org.

How does one get access to the rss spec from the feed to detect that yahoo is in play and envoke the right module.

thx



From: ed_b_71@...
To: users@...
Subject: reading mrss content
Date: Thu, 5 Jun 2008 16:54:07 -0700

I am trying to read in a RSS 2.0 feed and get to the media:content part in one of the items.

How do I do that?

I have a SyndFeed feed;

I get the SyndEntries from it.

How does one get further deeper to get the media content.

thx,

Ed






Now you can invite friends from Facebook and other groups to join you on Windows Live™ Messenger. Add them now!


It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn How.

Re: reading mrss content

by Dave Johnson-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 5, 2008 at 9:08 PM, Ed _ <ed_b_71@...> wrote:

> I am trying to figure out the module to use. But it does not detect that the
> yahoo media rss is needed.
>
> The feed I am trying to read in has the following rss spec
>
> <?xml version="1.0" encoding="utf-8"?>
> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:media="http://search.yahoo.com/mrss/">
>
> getModules() call on SyncFeed - just returns one Module for purl.org.
>
> How does one get access to the rss spec from the feed to detect that yahoo
> is in play and envoke the right module.

Did you download and configure the Yahoo Media RSS module?

There are some instructions here:
   http://wiki.java.net/bin/view/Javawsxml/RomeModules

I also cover ROME module configuration in Chapter 7 of my book:
   http://manning.com/dmjohnson

- Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: reading mrss content

by Ed_ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I do have the the 0.2 version of the modules.jar

When the header changes to -

<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">

 It detects two modules - the one for purl.org and one for itunes. I can understand why the others don't get picked up but the yahoo media module is there in the module.02.jar bundle.

thx

Dave Johnson-8 wrote:
On Thu, Jun 5, 2008 at 9:08 PM, Ed _ <ed_b_71@hotmail.com> wrote:
> I am trying to figure out the module to use. But it does not detect that the
> yahoo media rss is needed.
>
> The feed I am trying to read in has the following rss spec
>
> <?xml version="1.0" encoding="utf-8"?>
> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:media="http://search.yahoo.com/mrss/">
>
> getModules() call on SyncFeed - just returns one Module for purl.org.
>
> How does one get access to the rss spec from the feed to detect that yahoo
> is in play and envoke the right module.

Did you download and configure the Yahoo Media RSS module?

There are some instructions here:
   http://wiki.java.net/bin/view/Javawsxml/RomeModules

I also cover ROME module configuration in Chapter 7 of my book:
   http://manning.com/dmjohnson

- Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@rome.dev.java.net
For additional commands, e-mail: users-help@rome.dev.java.net

Re: reading mrss content

by Robert "kebernet" Cooper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You might try getting the mrss by itself.  Honestly, I am not sure how
old the 0.2 modules build is, but sometime in the last 18 months or
so, Yahoo changed the spec to add a trailing / to the namespace.
Unfortunately, not all feeds HAVE the trailing slash, including a
number of Yahoo properties :/... At any rate, the current build of the
MRSS has a number of improvements: changing URLs to URIs so RTSP refs
work right, and supporting both permutations of the namespace, etc.



On Fri, Jun 6, 2008 at 9:27 AM, Ed_ <ed_b_71@...> wrote:

>
> I do have the the 0.2 version of the modules.jar
>
> When the header changes to -
>
> <?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl"
> type="text/xsl" media="screen"?><?xml-stylesheet
> href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css"
> media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:media="http://search.yahoo.com/mrss/"
> xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
>
>  It detects two modules - the one for purl.org and one for itunes. I can
> understand why the others don't get picked up but the yahoo media module is
> there in the module.02.jar bundle.
>
> thx
>
>
> Dave Johnson-8 wrote:
>>
>> On Thu, Jun 5, 2008 at 9:08 PM, Ed _ <ed_b_71@...> wrote:
>>> I am trying to figure out the module to use. But it does not detect that
>>> the
>>> yahoo media rss is needed.
>>>
>>> The feed I am trying to read in has the following rss spec
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
>>> xmlns:media="http://search.yahoo.com/mrss/">
>>>
>>> getModules() call on SyncFeed - just returns one Module for purl.org.
>>>
>>> How does one get access to the rss spec from the feed to detect that
>>> yahoo
>>> is in play and envoke the right module.
>>
>> Did you download and configure the Yahoo Media RSS module?
>>
>> There are some instructions here:
>>    http://wiki.java.net/bin/view/Javawsxml/RomeModules
>>
>> I also cover ROME module configuration in Chapter 7 of my book:
>>    http://manning.com/dmjohnson
>>
>> - Dave
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/reading-mrss-content-tp17682026p17692170.html
> Sent from the Rome - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
:Robert "kebernet" Cooper
::kebernet@...
Alice's cleartext
Charlie is the attacker
Bob signs and encrypts
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...