Adding a custom namespace prefix and uri with rome

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

Adding a custom namespace prefix and uri with rome

by Ed Johnson :: 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.

Hi,


 Can someone help me add a custom namespace prefix and uri with rome? I haven't seen an example that did this in the tutorials.


Here's the code I would like to produce: 

 

<rss xmlns:edwardotis="com:edwardotis:www" version="2.0">

  <channel>

    <title>included</title>

    <link>http://edwardotis.com/link>

    <language>en-us</language>

    <description>my description</description>

    <edwardotis:pageSize>5</ edwardotis:pageSize>

</channel>

</rss>


(Similar to this tutorial on extending RSS)

http://www.disobey.com/detergent/2002/extendingrss2/


Thanks!


Ed


Re: Adding a custom namespace prefix and uri with rome

by Alejandro Abdelnur-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ed,

Look at the Module sample and tutorial.

Alejandro

On Tue, Jun 3, 2008 at 6:30 AM, Ed Johnson <ed@...> wrote:

Hi,


 Can someone help me add a custom namespace prefix and uri with rome? I haven't seen an example that did this in the tutorials.


Here's the code I would like to produce: 

 

<rss xmlns:edwardotis="com:edwardotis:www" version="2.0">

  <channel>

    <title>included</title>

    <link>http://edwardotis.com/link>

    <language>en-us</language>

    <description>my description</description>

    <edwardotis:pageSize>5</ edwardotis:pageSize>

</channel>

</rss>


(Similar to this tutorial on extending RSS)

http://www.disobey.com/detergent/2002/extendingrss2/


Thanks!


Ed


LightInTheBox - Buy quality products at wholesale price