atom:content
either contains or links to the content of the entry
Element information
Namespace: http://www.w3.org/2005/Atom
Schema document: syndication.xsd
Type: atom:AtomContentType
Properties: Global, Qualified
Content
- Any text (mixed) content, intermingled with:
- Choice [0..1]
- xhtml:div [0..1]
- Any element [0..*] Namespace: ##any, Process Contents: skip
from group atom:anyElement
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
xml:base | [0..1] | xsd:anyURI | from group atom:atomCommonAttributes | |
xml:lang | [0..1] | Anonymous | from group atom:atomCommonAttributes | |
Any attribute | [0..*] | Namespace: ##other, Process Contents: skip | from group atom:local | |
type | [0..1] | atom:ContentType | MAY be one of "text", "html", or "xhtml". Failing that, it MUST conform to the syntax of a MIME media type, but MUST NOT be a composite type. If neither the type attribute nor the src attribute is provided, Atom Processors MUST behave as though the type attribute were present with a value of "text" | |
src | [0..1] | xsd:anyURI | an IRI reference used to retrieve the content |
Type alternatives
Test | Type |
---|---|
@src | atom:atomOutOfLineContentType |
@type='xhtml' | atom:atomInlineXHTMLContentType |
@type='text' or @type='html' | atom:atomInlineTextContentType |
atom:atomInlineOtherContentType |
Used in
- Anonymous type of element atom:entry
Sample instance
<content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/"> <div> <p> <i>[Update: The Atom draft is finished.]</i> </p> </div> </content>