What is XML, really?


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


  If there is an element like this

  <Player name="agassi">tennis</Player>

  the assignment will report an error (even though this is valid xml) as the
  assignment only checks for the start and end tags to match.

You're half right; your solution should report an error because the tag is not
in the proper format. Remember, you are parsing XML *as* *defined* *by* *the*
*assignment*, you are not parsing XML as defined by the W3C. If input does not
follow *the* *definition* *given* *in* *the* *assignment*, the input is
invalid, independent of any other definitions that may exist anywhere else in
the whole wide world.



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