
62 • XML & Related Technologies
This should tell us clearly that Web browsers validate the correctness of XML documents before they
display them. If an error is found, the browsers do not ignore them and proceed. Instead, they trap the error and
wait for the user to correct it. We shall study later that this comes in two respects. For now, we will not worry
about it beyond this. However, for understanding the basics better, let us have a few simple exercises.
Exercise 1: Try creating an XML document without the rst line (that
is, the XML declaration). What is the result?
Solution 1: Ideally, this should cause an error. However, surprisingly, ...