Not quite. Takasho's example is actually perfectly valid, just not typical. Using type="text/html" is fine, and when doing so, the value of the atom:content needs to be processable as that media type, meaning the tag is perfectly fine. When type="html", the value of the atom:content needs to be a fragment of HTML that is suitable for inclusion inside a div. There is no requirement that the first child be a div -- that's only for XHTML content. entry.setContent( "
full html doc", "text/html"); entry.setContentAsHTML("html fragment"); The former comes out as:
This is a full HTML >> document", "text/html" ); >> entryHTML.addAuthor("Takasho"); >> entryHTML.addLink("http://www.supersmashing.co.uk"); >> feed.addEntry(entryHTML); > >> ---output--- > > I noticed that Takasho's example isn't correct Atom-wise, as the >