我有一个有多种变体的产品。我想,在一个RSS feed,以显示这是一个嵌套项目的选择,但我不知道这是否有效:带有嵌套项目的RSS提要,什么是正确的方法?
<?xml version="1.0" encoding="US-ASCII" ?>
<rss version="2.0"
xmlns:s="http://example.com/s">
<channel>
<title>Examle RSS</title>
<link>http://www.example.com/</link>
<description>Example Product Feed</description>
<language>en-us</language>
<item>
<title>My Product</title>
<description>An amazing item!</description>
<item>
<title>AS-435</title>
<s:price>$34.00</s:price>
</item>
</item>
</channel>
</rss>
如果这不是有效的什么是最好的方式去做这个?
那么这是一个特定的客户谁需要所有的信息,他们将解析它自己,所以我倾向于相信,它可能适用于我的目的... – kylex 2011-05-11 18:18:53
这是什么样的命名空间看起来像。 http://rsscloud.org/namespace.html我试图将此作为我没有发货的产品的想法。但这是如何工作的。 – 2011-05-11 18:20:04
那么我可以定义我自己的命名空间,这不是一个真正的问题...... – kylex 2011-05-11 18:23:00