Code example for AttributesImpl

Methods: addAttribute

0
             
            start( "link" ); 
            cdata(AtomUtils.getFeedURL(map));
            end( "link" ); 
             
            atts = new AttributesImpl();
            atts.addAttribute(null, "href", "href", null, AtomUtils.getFeedURL(map));
            atts.addAttribute(null, "rel", "rel", null, "self");
            element("atom:link", null, atts);
 
            //items 
            try { 
                encodeItems(map);
            } catch (IOException e) {
                throw new RuntimeException(e);
            } 
 
            end("channel"); 
            end("rss"); 
        }