Below is a sample ATOM 0.3 file, formatted correctly and utilizing all tags.
Select the question mark at the beginning of the specific line to view complete
syntax details for the element.
| 01 |
?
| <?xml version="1.0" encoding="utf-8"?> |
Required element |
|
| 02 |
? | <feed |
Required element |
|
| 03 |
? |
version="0.3" |
Required attribute |
|
| 04 |
|
xmlns="http://purl.org/atom/ns#" |
Required attribute |
|
| 05 |
? |
xml:lang="en-us" |
Optional attribute |
|
| 06 |
| > |
|
|
| 07 |
| |
|
|
| 08 |
? |
<title>{feed_title}</title> |
Required element |
Content Construct |
| 09 |
| |
|
|
| 10 |
? |
<link |
Required element |
Link Construct |
| 11 |
|
rel="{RelType}" |
Required attribute |
|
| 12 |
|
type="{MIMEType}" |
Required attribute |
|
| 13 |
|
href="{URL}" |
Required attribute |
|
| 14 |
|
title="{string}" |
Required attribute |
|
| 15 |
|
/> |
|
|
| 16 |
| |
|
|
| 17 |
? |
<author> |
Required element |
Person Construct |
| 18 |
|
<name>{string}</name> |
Required sub-element |
|
| 19 |
|
<url>{URL}</url> |
Required sub-element |
|
| 20 |
|
<email>{MailTo}</email> |
Required sub-element |
|
| 21 |
| </author> |
|
|
| 22 |
| |
|
|
| 23 |
? |
<contributor> |
Optional element |
Person Construct |
| 24 |
|
<name>{string}</name> |
Required sub-element |
|
| 25 |
|
<url>{URL}</url> |
Required sub-element |
|
| 26 |
|
<email>{MailTo}</email> |
Required sub-element |
|
| 27 |
| </contributor> |
|
|
| 28 |
| |
|
|
| 29 |
? |
<tagline>{string}</tagline> |
Optional element |
Content Construct |
| 30 |
| |
|
|
| 31 |
? |
<id>{URI}</id> |
Optional element |
|
| 32 |
| |
|
|
| 33 |
? |
<generator |
Optional element |
|
| 34 |
? |
url="{URL}" |
Optional attribute |
|
| 35 |
? |
version="{string}" |
Optional attribute |
|
| 36 |
|
> |
|
|
| 37 |
|
{string} |
|
|
| 38 |
|
</generator> |
|
|
| 39 |
| |
|
|
| 40 |
? |
<copyright>{string}</copyright> |
Optional element |
Content Construct |
| 41 |
| |
|
|
| 42 |
? |
<info>{string}</info> |
Optional element |
Content Construct |
| 43 |
| |
|
|
| 44 |
? |
<modified>{W3C_Date}</modified> |
Required element |
Date Construct |
| 45 |
| |
|
|
| 46 |
? | <entry> |
Required element |
|
| 47 |
? |
<title>{string}</title> |
Required sub-element |
Content Construct |
| 48 |
? |
<link |
Required sub-element |
Link Construct |
| 49 |
|
rel="{RelType}" |
|
|
| 50 |
|
type="{MediaType}" |
|
|
| 51 |
|
href="{URL}" |
|
|
| 52 |
|
title="{String}" /> |
|
|
| 53 |
? |
<author> |
Required element |
Person Construct |
| 54 |
|
<name>{string}</name> |
|
|
| 55 |
|
<url>{URL}</url> |
|
|
| 56 |
|
<email>{MailTo}</email> |
|
|
| 57 |
| </author> |
|
|
| 58 |
| |
|
|
| 59 |
? |
<contributor> |
Optional element |
Person Construct |
| 60 |
|
<name>{string}</name> |
|
|
| 61 |
|
<url>{URL}</url> |
|
|
| 62 |
|
<email>{MailTo}</email> |
|
|
| 63 |
| </author> |
|
|
| 64 |
| |
|
|
| 65 |
? | <id>{URI}</id> |
Optional element |
|
| 66 |
| |
|
|
| 67 |
? |
<issued>{W3C_Date}</issued> |
Required element |
Date Construct |
| 68 |
? |
<created>{W3C_Date}</created> |
Optional element |
Date Construct |
| 69 |
| |
|
|
| 70 |
? |
<summary>{string}</summary> |
Optional element |
Content Construct |
| 71 |
| |
|
|
| 72 |
? |
<content>{string}</content> |
Optional element |
Content Construct |
| 73 |
|
</entry> |
|
|
| 74 |
| |
|
|
| 75 |
|
<entry> |
|
|
| 76 |
|
[...] |
|
|
| 77 |
|
</entry> |
|
|
| 78 |
| |
|
|
| 79 |
| </feed> |
|
|