xmlnamespace and rdf

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

xmlnamespace and rdf

by pranavparikh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm new to ROME. I would like to have the output feed as shown below.I'm not sure how to get a new xmlnamespace (e.g xmlns:j.0) ,get a <subtitle> tag as well as <rdf> tag as shown below.Can anyone guide me on this?

<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom"

xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"


xmlns:j.0="http://abc.test.property/"

xmlns:r.0="http://abc.run.property/"


xmlns:dc="http://purl.org/dc/elements/1.1/">

  <title>Sbc Interface</title>

  <link rel="alternate"

  href="http://www.abc.com/page/1.0/" />


  <subtitle>This feed uses Rome to return the XML in ATOM or

  RSS</subtitle>


  <author><name>John Smith</name></author>

  <updated>2008-07-17T21:13:12Z</updated>

<id>https://localhost:8443/process/atom_1.0/11</id>

  <r.0:id>11</r.0:id>

  <r.0:login>JSMITH</r.0:login>


        <rdf:Description rdf:about="urn:workflow:test193478528289646">

        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                          xmlns:j.0="http://abc.test.property/">

        </rdf:RDF>

</rdf:Description>



        <entry>

                <title>result0</title>

                <link href="link_to_BB_data_where_applicable"/>

                <id>urn:thereport#Report/Report.pdf</id>

                <r.0:id>31</r.0:id>

                <updated>2008-07-17T21:13:12Z</updated>

                <j.0:time>193478528289646</j.0:time>

               

        </entry>



        <entry>

                <title>result07777</title>

                <link href="link_to_BB_data_where_applicable"/>

                <id>urn:thereport#Report/Report.pdf-137818</id>

                <r.0:id>33</r.0:id>

                <updated>2008-07-17T21:13:12Z</updated>

                <j.0:time>193478528289646</j.0:time>

               

        </entry>

       

</feed>



----
Thanks,
Pranav

Re: xmlnamespace and rdf

by erlingwl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you can do it by creating your own modules, see
http://sujitpal.blogspot.com/2007/10/custom-modules-with-rome.html

But keep in mind that it would be much easier for generic clients to
parse your feed if you put your RDF inside the <content> element of
the entries. You can even specify the type, for instancel: <content
type="application/rdf+xml"> your rdf here </content>

At least that is my personal opinion =)

Regards,
Erling

On Mon, Jul 21, 2008 at 8:58 PM, pranavparikh <pranav.r.parikh@...> wrote:

>
> Hi,
>
> I'm new to ROME. I would like to have the output feed as shown below.I'm not
> sure how to get a new xmlnamespace (e.g xmlns:j.0) ,get a <subtitle> tag as
> well as <rdf> tag as shown below.Can anyone guide me on this?
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <feed xmlns="http://www.w3.org/2005/Atom"
>
> xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
>
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
> xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
>
>
> xmlns:j.0="http://abc.test.property/"
>
> xmlns:r.0="http://abc.run.property/"
>
>
> xmlns:dc="http://purl.org/dc/elements/1.1/">
>
>  <title>Sbc Interface</title>
>
>  <link rel="alternate"
>
>  href="http://www.abc.com/page/1.0/" />
>
>
>  <subtitle>This feed uses Rome to return the XML in ATOM or
>
>  RSS</subtitle>
>
>
>  <author><name>John Smith</name></author>
>
>  <updated>2008-07-17T21:13:12Z</updated>
>
> <id>https://localhost:8443/process/atom_1.0/11</id>
>
>  <r.0:id>11</r.0:id>
>
>  <r.0:login>JSMITH</r.0:login>
>
>
>        <rdf:Description rdf:about="urn:workflow:test193478528289646">
>
>        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
>                          xmlns:j.0="http://abc.test.property/">
>
>        </rdf:RDF>
>
> </rdf:Description>
>
>
>
>        <entry>
>
>                <title>result0</title>
>
>                <link href="link_to_BB_data_where_applicable"/>
>
>                <id>urn:thereport#Report/Report.pdf</id>
>
>                <r.0:id>31</r.0:id>
>
>                <updated>2008-07-17T21:13:12Z</updated>
>
>                <j.0:time>193478528289646</j.0:time>
>
>
>
>        </entry>
>
>
>
>        <entry>
>
>                <title>result07777</title>
>
>                <link href="link_to_BB_data_where_applicable"/>
>
>                <id>urn:thereport#Report/Report.pdf-137818</id>
>
>                <r.0:id>33</r.0:id>
>
>                <updated>2008-07-17T21:13:12Z</updated>
>
>                <j.0:time>193478528289646</j.0:time>
>
>
>
>        </entry>
>
>
>
> </feed>
>
>
>
> ----
> Thanks,
> Pranav
> --
> View this message in context: http://www.nabble.com/xmlnamespace-and-rdf-tp18575245p18575245.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@...
>
>



--
Med vennlig hilsen
Erling Wegger Linde

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

LightInTheBox - Buy quality products at wholesale price