rome atom 1.0 output incomplete

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

rome atom 1.0 output incomplete

by Richard Jones-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Folks,

I'm having trouble getting Rome to output all the parts of the model as
ATOM xml.  I am doing the following (for example):

List<Link> relateds = new ArrayList<Link>();
Link link = new Link();
link.setRel("related");
link.setHref("http://some.uri/");
link.setType("application/octet-stream");
link.setHrefLang("en");
link.setTitle("my title");
relateds.add(link);

Feed atom = new Feed("atom_1.0");
atom.setOtherLinks(relateds);

// more code here ...

StringWriter writer = new StringWriter();
WireFeedOutput output = new WireFeedOutput();
output.output(atom, writer);

The result for the "related" link is that it outputs:

<link rel="related" type="application/octet-stream"
href="http://some.uri/" hreflang="en" />

where has my title gone?  I've debugged the model, and the title is part
of the atom object right up to the point that it disappears into the
serialiser.  I am having equivalent problems with the WireFeedOutput not
serialising the following elements /at all/: icon, updated, generator
and rights.  It also only partially serialises other types of links:
alternate and license at least.  Any ideas what's going on?

Cheers,

Richard

--
=======================================================================
Richard Jones                     |       Hewlett-Packard Limited
Research Engineer, HP Labs        |       registered office:
Bristol, UK                       |       Cain Road, Bracknell,
                                  |       Berks, RG12 1HN.
                                  |       Registered No: 690597 England
eml: richard.d.jones@...       -------------------------------------
blg: http://chronicles-of-richard.blogspot.com/
-----------------------------------------------------------------------
The contents of this message and any attachments to it are confidential
and may be legally privileged. If you have received this message in
error, you should delete it from your system immediately and advise the
sender. To any recipient of this message within HP, unless otherwise
stated you should consider this message and attachments as "HP
CONFIDENTIAL".
========================================================================


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


Re: rome atom 1.0 output incomplete

by Alejandro Abdelnur-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Richard,

Using ROME from CSV your sample works as expected.

Alejandro
PS: trying to get a new version of ROME out of the door at the moment.

On Fri, Jul 4, 2008 at 8:16 PM, Richard Jones <richard.d.jones@...> wrote:

> Hi Folks,
>
> I'm having trouble getting Rome to output all the parts of the model as ATOM
> xml.  I am doing the following (for example):
>
> List<Link> relateds = new ArrayList<Link>();
> Link link = new Link();
> link.setRel("related");
> link.setHref("http://some.uri/");
> link.setType("application/octet-stream");
> link.setHrefLang("en");
> link.setTitle("my title");
> relateds.add(link);
>
> Feed atom = new Feed("atom_1.0");
> atom.setOtherLinks(relateds);
>
> // more code here ...
>
> StringWriter writer = new StringWriter();
> WireFeedOutput output = new WireFeedOutput();
> output.output(atom, writer);
>
> The result for the "related" link is that it outputs:
>
> <link rel="related" type="application/octet-stream" href="http://some.uri/"
> hreflang="en" />
>
> where has my title gone?  I've debugged the model, and the title is part of
> the atom object right up to the point that it disappears into the
> serialiser.  I am having equivalent problems with the WireFeedOutput not
> serialising the following elements /at all/: icon, updated, generator and
> rights.  It also only partially serialises other types of links: alternate
> and license at least.  Any ideas what's going on?
>
> Cheers,
>
> Richard
>
> --
> =======================================================================
> Richard Jones                     |       Hewlett-Packard Limited
> Research Engineer, HP Labs        |       registered office:
> Bristol, UK                       |       Cain Road, Bracknell,
>                                 |       Berks, RG12 1HN.
>                                 |       Registered No: 690597 England
> eml: richard.d.jones@...       -------------------------------------
> blg: http://chronicles-of-richard.blogspot.com/
> -----------------------------------------------------------------------
> The contents of this message and any attachments to it are confidential
> and may be legally privileged. If you have received this message in
> error, you should delete it from your system immediately and advise the
> sender. To any recipient of this message within HP, unless otherwise
> stated you should consider this message and attachments as "HP
> CONFIDENTIAL".
> ========================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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


Re: rome atom 1.0 output incomplete

by Richard Jones-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alejandro,

OK, I will upgrade to the latest version when it is ready.  Thanks very
much!

Cheers,

Richard

> Richard,
>
> Using ROME from CSV your sample works as expected.
>
> Alejandro
> PS: trying to get a new version of ROME out of the door at the moment.
>
> On Fri, Jul 4, 2008 at 8:16 PM, Richard Jones <richard.d.jones@...> wrote:
>  
>> Hi Folks,
>>
>> I'm having trouble getting Rome to output all the parts of the model as ATOM
>> xml.  I am doing the following (for example):
>>
>> List<Link> relateds = new ArrayList<Link>();
>> Link link = new Link();
>> link.setRel("related");
>> link.setHref("http://some.uri/");
>> link.setType("application/octet-stream");
>> link.setHrefLang("en");
>> link.setTitle("my title");
>> relateds.add(link);
>>
>> Feed atom = new Feed("atom_1.0");
>> atom.setOtherLinks(relateds);
>>
>> // more code here ...
>>
>> StringWriter writer = new StringWriter();
>> WireFeedOutput output = new WireFeedOutput();
>> output.output(atom, writer);
>>
>> The result for the "related" link is that it outputs:
>>
>> <link rel="related" type="application/octet-stream" href="http://some.uri/"
>> hreflang="en" />
>>
>> where has my title gone?  I've debugged the model, and the title is part of
>> the atom object right up to the point that it disappears into the
>> serialiser.  I am having equivalent problems with the WireFeedOutput not
>> serialising the following elements /at all/: icon, updated, generator and
>> rights.  It also only partially serialises other types of links: alternate
>> and license at least.  Any ideas what's going on?
>>
>> Cheers,
>>
>> Richard
>>
>> --
>> =======================================================================
>> Richard Jones                     |       Hewlett-Packard Limited
>> Research Engineer, HP Labs        |       registered office:
>> Bristol, UK                       |       Cain Road, Bracknell,
>>                                 |       Berks, RG12 1HN.
>>                                 |       Registered No: 690597 England
>> eml: richard.d.jones@...       -------------------------------------
>> blg: http://chronicles-of-richard.blogspot.com/
>> -----------------------------------------------------------------------
>> The contents of this message and any attachments to it are confidential
>> and may be legally privileged. If you have received this message in
>> error, you should delete it from your system immediately and advise the
>> sender. To any recipient of this message within HP, unless otherwise
>> stated you should consider this message and attachments as "HP
>> CONFIDENTIAL".
>> ========================================================================
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>    
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


--
=======================================================================
Richard Jones                     |       Hewlett-Packard Limited
Research Engineer, HP Labs        |       registered office:
Bristol, UK                       |       Cain Road, Bracknell,
                                  |       Berks, RG12 1HN.
                                  |       Registered No: 690597 England
eml: richard.d.jones@...       -------------------------------------
blg: http://chronicles-of-richard.blogspot.com/
-----------------------------------------------------------------------
The contents of this message and any attachments to it are confidential
and may be legally privileged. If you have received this message in
error, you should delete it from your system immediately and advise the
sender. To any recipient of this message within HP, unless otherwise
stated you should consider this message and attachments as "HP
CONFIDENTIAL".
========================================================================


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

LightInTheBox - Buy quality products at wholesale price