|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Extending AtomHi,
I'm trying to familiarize with Rome and Propono. I need to extend my entries with some custom fields e.g. <customfield>value</customfield>. I have found little help so far on the web and in the javadocs. How do I add custom fields to an entry (at the server side) and what is the best way to parse them on the client side? Any hints or help will be deeply appreciated! Thanks in advance, Erling |
|
|
RE: Extending AtomDoes the section called “Extending
RSS” at the following link help? http://www.rssboard.org/rss-specification That link has a very big picture
view. The following link contains
some examples: http://www.disobey.com/detergent/2002/extendingrss2/ The following link also has an example: http://www.xml.com/lpt/a/2003/07/23/extendingrss.html
. It states that “A regular
RSS 2.0 client can understand this, as there is no change to the core format.” If this doesn’t even come close to
answering your question, please clarify it. -----Original Message----- Hi, |
|
|
Re: Extending AtomI should have specified that I am using Atom (and APP)
If you look at https://rome.dev.java.net/apidocs/0_9/com/sun/syndication/feed/atom/Entry.html the closest I have come to extending an entry with custom elements are to add them as text "<customtag>blabla</customtag>" using the method setContents(..). However I don't think this approach is very elegant - as it requires additional parsing at the client side too. In plain words I would like a method: AddCustomTag(name, value, namespace) and at the client side GetCustomTagValue(name, namespace) ++ Any suggestions? On Feb 6, 2008 2:02 PM, Steve Swett <steve.swett@...> wrote:
-- Med vennlig hilsen Erling Wegger Linde |
|
|
Re: Extending AtomOn Feb 6, 2008 8:20 AM, Erling Wegger Linde <erlingwl@...> wrote:
> I should have specified that I am using Atom (and APP) > > If you look at > https://rome.dev.java.net/apidocs/0_9/com/sun/syndication/feed/atom/Entry.html > the closest I have come to extending an entry with custom elements are to > add them as text "<customtag>blabla</customtag>" using the method > setContents(..). However I don't think this approach is very elegant - as it > requires additional parsing at the client side too. > > In plain words I would like a method: AddCustomTag(name, value, namespace) > and at the client side GetCustomTagValue(name, namespace) ++ > > Any suggestions? If you want to add new elements to Atom feed format, then you will have to develop a ROME Module, with a parser/generator for your new elements and then you'll have to configure it for use with ROME. This is explained here: http://wiki.java.net/bin/view/Javawsxml/Rome05TutorialSampleModule I also explain how to do it in my book RSS and Atom in Action. http://manning.com/dmjohnson/ Hope that helps. - Dave --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Extending AtomThank you very much! I think that is exactly what I was looking for =)
On Feb 6, 2008 2:33 PM, Dave <snoopdave@...> wrote:
-- Med vennlig hilsen Erling Wegger Linde |
|
|
Re: Extending AtomSorry, this passed me by. You can also use the get/setForeignMarkup() to just put arbitrary JDOM elements into an entry or feed.
On Wed, Feb 6, 2008 at 9:38 AM, Erling Wegger Linde <erlingwl@...> wrote: Thank you very much! I think that is exactly what I was looking for =) -- :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 |
|
|
Re: Extending AtomThanks for the tip :D
However, I decided to put additional content in the content module anyway. I found out that adding other elements to the entry outside the content is something that shouldn't be done if one isn't extending the entire APP.. - Erling On Thu, Apr 3, 2008 at 1:19 AM, Robert kebernet Cooper <kebernet@...> wrote: > Sorry, this passed me by. You can also use the get/setForeignMarkup() to > just put arbitrary JDOM elements into an entry or feed. > > > > On Wed, Feb 6, 2008 at 9:38 AM, Erling Wegger Linde <erlingwl@...> > wrote: > > > Thank you very much! I think that is exactly what I was looking for =) > > > > > > > > > > > > On Feb 6, 2008 2:33 PM, Dave <snoopdave@...> wrote: > > > > > > > > On Feb 6, 2008 8:20 AM, Erling Wegger Linde <erlingwl@...> wrote: > > > > I should have specified that I am using Atom (and APP) > > > > > > > > If you look at > > > > > https://rome.dev.java.net/apidocs/0_9/com/sun/syndication/feed/atom/Entry.html > > > > the closest I have come to extending an entry with custom elements are > to > > > > add them as text "<customtag>blabla</customtag>" using the method > > > > setContents(..). However I don't think this approach is very elegant - > as it > > > > requires additional parsing at the client side too. > > > > > > > > In plain words I would like a method: AddCustomTag(name, value, > namespace) > > > > and at the client side GetCustomTagValue(name, namespace) ++ > > > > > > > > Any suggestions? > > > > > > If you want to add new elements to Atom feed format, then you will > > > have to develop a ROME Module, with a parser/generator for your new > > > elements and then you'll have to configure it for use with ROME. This > > > is explained here: > > > > > > http://wiki.java.net/bin/view/Javawsxml/Rome05TutorialSampleModule > > > > > > I also explain how to do it in my book RSS and Atom in Action. > > > http://manning.com/dmjohnson/ > > > > > > Hope that helps. > > > > > > - Dave > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscribe@... > > > For additional commands, e-mail: users-help@... > > > > > > > > > > > > > > > > > > > > -- > > Med vennlig hilsen > > Erling Wegger Linde > > > > -- > :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 -- Med vennlig hilsen Erling Wegger Linde --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |