« Return to Thread: xmlnamespace and rdf

xmlnamespace and rdf

by pranavparikh :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: xmlnamespace and rdf

LightInTheBox - Buy quality products at wholesale price!