|
From: Joseph S. <acr...@io...> - 2003-02-24 23:46:45
|
private void addItemsRef(Element channel, List is) {
if(is!=null && is.size()>0) {
Element items=channel.addElement("items");
Element seq=items.addElement("rdf", "Seq");
Iterator iter=is.iterator();
while(iter.hasNext()) {
Item item=(Item)iter.next();
// addItem(seq, item, "resource");
Element li = seq.addElement("li");
li.setAttribute("rdf", "resource", item.getLink());
}
}
}
that now follows the rdf:Seq->li syntax described by O'Reilly's
page
http://www.oreillynet.com/pub/a/network/2000/08/25/magazine/rss_tut.html?page=3
Joe
--
----------------------------------------------------------------------
Joseph Shelby mailto:acr...@io...
45533 Stablemates Ct. http://www.io.com/~acroyear
Sterling, VA 20164 (703) 404-0314 | 247-7868
Software Engineer, ISX Corporation, Arlington, VA
"The people of England will permit anything...except cruelty to horses
and a rise in the price of beer." -- Return of the Musketteers (1989)
----------------------------------------------------------------------
|