about these, you'll only use them whenever you want to put a "&"
or a "<" in your text.
5. A "token" is a string of characters. The first character is
either a letter or an underscore ("_"). Any characters that
follow are either letters, numbers, an underscore, or a period
(".").
First, start your source file with an XML declaration, a reference to
the DTD, and the "rfc" element:
<?xml version="1.0"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
...
Ignore the first two lines -- the declaration and the reference --
and simply treat them as opaque strings. Nothing else should be
present after the "" tag.
Second, make sure that all elements are properly matched and nested.
RFC 2629 Writing I-Ds and RFCs using XML June 1999
A properly matched element that starts with "" is eventually
followed with "". (Empty elements are always matched.)
Elements are properly nested when they don't overlap.
For example,
...
...
...
is properly nested.
However,
...
...
...
overlaps, so the elements aren't properly nested.
Third, never use "<" or "&" in your text. Instead, use either "<"
or "&", respectively.
Fourth, there are two quoting characters in XML, 'apostrophe' and
"quotation". Make sure that all attributes values are quoted, e.g.,
"<example name='value'>", If the value contains one of the quoting
characters, then use the other to quote the value, e.g., "<example
name='"'>", If the value contains both quoting characters, then use
one of them to quote the value, and replace occurrances of that
character in the attribute value with either ''' (apostrophe) or
""" (quotation), e.g., "<example name='"'"'>".
If you want to put a comment in your source file, here's the syntax:
<!-- comments can be multiline,
if you wish -->
Finally, XML is case sensitive.
RFC 2629 Writing I-Ds and RFCs using XML June 1999
2.2 Front matter
Immediately following the "" tag is the "front" element:
<?xml version="1.0"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<workgroup ...>
=3= |