Document questions.


R. Clayton (rclayton@monmouth.edu)
(no date)


  Might there be a processing instruction in the beginning of the document, for
  example, <?xml.....?>?

The answer to the question "is it possible that input may contain..." is always
yes.

  Might there be empty elements, for example <element/>?

Again, the answer to the question "is it possible that input may contain..." is
always yes. However, you may want to review the second and third paragraphs in
the Background section of the assignment page, the paragraphs that begin "There
are two types of tags" and "The format of a close tag is".

  Will there be DTDs in the docuemnt?

There could very well be a DTD in the document; there could be thousands of
DTDs in the document. The only thing your program cares about are tags and how
they're nested, as described in the Background Section of the assignment page.

  If there are other characters preceding the first occurence of the character
  '<' in the document, is document malformed?

No; arbitrary text may appear before or after any tag; the assignment has been
updated to make this clear.



This archive was generated by hypermail 2.0b3 on Mon May 03 2004 - 17:00:06 EDT