]> err.no Git - sope/blob - sope-xml/samples/rssparse.xmap
fixed some comments
[sope] / sope-xml / samples / rssparse.xmap
1 {
2   "http://purl.org/rss/1.0/" = {
3
4     channel = {
5       class  = RSSChannel;
6       
7       attributes = {
8         title       = title;
9         link        = link;
10         description = info;
11       };
12     };
13     
14     item = {
15       class  = RSSItem;
16       
17       attributes = {
18         title       = title;
19         link        = link;
20         description = info;
21       };
22     };
23     
24     title       = { class = NSString; };
25     link        = { class = NSString; };
26     description = { class = NSString; key = "info"; };
27   };
28   
29   "http://www.w3.org/1999/02/22-rdf-syntax-ns#" = {
30     RDF = {
31       class = NSMutableDictionary;
32       ToManyRelationships = {
33         channels = ( channel );
34         items    = ( item );
35       };
36     };
37   };
38 }