这个
tutorial
包括用于创建包含内容类型为text/html的数据的条目的部分:
entry = new SyndEntryImpl();
entry.setTitle("ROME v3.0");
entry.setLink("http://wiki.java.net/bin/view/Javawsxml/Rome03");
entry.setPublishedDate(DATE_PARSER.parse("2004-07-27"));
description = new SyndContentImpl();
description.setType("text/html");
description.setValue("<p>More Bug fixes, mor API changes, some new features and some Unit testing</p>"+
"<p>For details check the <a href=\"http://wiki.java.net/bin/view/Javawsxml/RomeChangesLog#RomeV03\">Changes Log</a></p>");
entry.setDescription(description);
entries.add(entry);
我认为这应该转变成
content:encoded
元素,可能取决于提要类型。
不知道这是不是你要找的,但是
RSS Best Practices Profile
描述元素中应包含的内容:
这个内容:编码元素定义
项目的全部内容
(可选)。此元素具有更高的
比描述更准确的目的
元素,可以是完整的
内容、摘要或其他形式
谨慎。
内容必须适合
表示为HTML并编码为
字符数据的方式与
描述元素。