1

Closed

Add Code Samples showing how to create RSS feed from compiled classes

description

fgaucho
Aug 20 at 4:36 AM
 
Hi there,
 
I compiled the Rss 2.0 schema, and I got the classes from it (Java code). Everything fine, and my question is about how to populate the TRss element ?
 
my goal:
 
<rss version="2.0">
<chanel>
   <title>test</title>
</chanel>
</rss>
 
my last trial:
 
        Rss rssFeed = new Rss();
        rssFeed.getOtherAttributes().put(new QName("", "version"), "2.0");
 
        TRssChannel channel = new TRssChannel();
        channel.getTitleOrLinkOrDescription().put(new QName("http://www.thearchitect.co.uk/schemas/rss-2_0", "title"), "Cars @ Cejug Classifieds");
 
a code sample in any language would be cool :)
Closed Sep 9, 2008 at 5:58 AM by jthelin

comments

wrote Sep 9, 2008 at 5:58 AM

Resolved with changeset 22688.

jthelin wrote Sep 9, 2008 at 6:21 AM

Release rss2schema-2.0.2.14 includes C# code samples showing how to construct an example RSS 2.0 feed file using data classed generated by the .NET xsd.exe tool.