XML technologies / RSS & Atom / Reference: Atom elements / atom:content
(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)
Meaning
Container for an entry’s content (entry) or a link to the content.
Schema
atomInlineTextContent =
element atom:content {
atomCommonAttributes,
attribute type { "text" | "html" }?,
(text)*
}
atomInlineXHTMLContent =
element atom:content {
atomCommonAttributes,
attribute type { "xhtml" },
xhtmlDiv
}
atomInlineOtherContent =
element atom:content {
atomCommonAttributes,
attribute type { atomMediaType }?
{text | anyElement}*
}
atomOutOfLineContent =
element atom:content {
atomCommonAttributes,
attribute type { atomMediaType }?,
attribute src { atomUri },
empty
}
atomContent = atomInlineTextContent
| atomInlineXHTMLContent
| atomInlineOtherContent
| atomOutOfLineContent
Ancestors
entry
Descendants/content
Text or binary content (see Content as a "first-class citizen").
Attributes
Name | Value |
|---|---|
|
|
| IRI reference (RFC 3987) |
Example
See the section Text content 1: plain text, HTML, and XHTML on the page Content as a "first-class citizen".
Notes
If the attribute type is not specified, its value must be assumed to be text. The attribute src must be used when the content is not included inline. Binary content must be base64-encoded. Text content (including XML) should be included inline.
Equivalents
RSS 1.1 | ||
|---|---|---|

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.