I want to make sure that I am writing the code correctly and fully understand what is needed. My biggest concern is what tags to use, (? * | ect.)
2.The element feed
2.1.The element feed starts with a required source element. Must appear exactly once. This is source of the feed
2.2.The element feed’s second element feed-desc is optional, but if present, appears no more than once. This is a description of the feed and its source.
2.3.The element feed’s third element info is optional, but if present, appears no more than once. This is additional information about the feed.
2.4. The element feed’s last element is a required stories element. Must appear exactly once. A list of feed stories.
The element source
3.1. The element source has a required name element. Must appear exactly once.
3.2. The element source has a required url element. Must appear exactly once.
3.2.1.These two elements can appear in either order, name first or url first
The element feed-desc
4.1. The element feed-desc contains at least 1 par element. May contain more than one. Represents paragraph(s) of text.
<!ELEMENT feed (source?, feed-desc, info, stories+>
<!ELEMENT source (name, url) >
<!ELEMENT feed-desc (par+>
Thank you.
What I have tried:
check book and online tutorials.