I have a product that has multiple variations. I would like, in an RSS feed, to show this as a nested items option, but I don’t know if this is valid or not:
<?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>
If this isn’t valid what is the best way to go about this?
It’s not valid, but it’s a very interesting idea.
You’d have to put the inner items in a new namespace.
And keep in mind that no one else will understand what you’re doing.