abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Peters <jcpet...@gmail.com>
Subject Re: Is this correct output for a HTML entry
Date Wed, 22 Aug 2007 01:12:22 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm new to Abdera, but I hope to add something to the mix.  I have a  
question about Takasho's question re: HTML.

On Aug 21, 2007, at 9:15 AM, Takasho wrote:
> Is this the correct output from creating a HTML entry:
>
> ---code---
>
> Entry entryHTML = factory.newEntry();
> entryHTML.setId("http://supersmashing.co.uk/elmer/entryHtml");
> entryHTML.setUpdated(new java.util.Date());
> entryHTML.setTitle("Shiny HTML Entry");
> entryHTML.setContent("<html><head/><body><p>This is a full HTML
> document</p></body></html>", "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  
<content> @type should be "html" not "text/html"  also, the first  
child of it should be a div element, not a HTML html node.  Is it in  
the scope of Abdera to warn on such a thing?

Hope it helps.

Josh Peters


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRsuNdvufekgP7qSrAQJNLgQAkusC6oqQ19wUaZJh2lrhZedtTfKISyG+
r2UwGimihdDeNjvC+6+wObP0NpYvc12Xtt+OPW1x+AtDIkks2CP14+5ra1NpXrOm
edtxbBV2/nuOgpFsuCkBmgCDulPZStw78VWbYhnjM9QKYYhnz71htQbnHQrtF4w5
9wzUq57FM1s=
=zkIX
-----END PGP SIGNATURE-----

Mime
View raw message