login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

The Atom API assumes only that the end user knows her ho...
Here is an example of a home page with Atom API auto-dis ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
... </html>

XML.com: The Atom API
http://www.xml.com/pub/a/2003/10/15/dive.html?page=2

Categories

/Channels/techie/web development

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

The Atom API assumes only that the end user knows her home page. It relies on a link tag in the head element of the home page that points to an Atom introspection file. The introspection file, in turn, lists the supported functions and extensions, as well as the URI associated with each function.

Here is an example of a home page with Atom API auto-discovery:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>My Weblog</title>
<link rel="service.edit" type="application/x.atom+xml" 
  href="/myblog/atom.cgi/introspection" title="Atom API" />
</head>
<body>
...
</body>
</html>

HTML

<p>The Atom API assumes only that the end user knows her home page. It relies on a <code>link</code> tag in the <code>head</code> element of the home page that points to an Atom introspection file. The introspection file, in turn, lists the supported functions and extensions, as well as the URI associated with each function.</p> <p>Here is an example of a home page with Atom API auto-discovery:</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt; &lt;head&gt; &lt;title&gt;My Weblog&lt;/title&gt; <strong>&lt;link rel="service.edit" type="application/x.atom+xml" href="/myblog/atom.cgi/introspection" title="Atom API" /&gt;</strong> &lt;/head&gt; &lt;body&gt; ... &lt;/body&gt; &lt;/html&gt;</code></pre>