A Complete XML Example
In spite of the freedom that a Web programmer has with XML, certain rules do apply. All XML code must conform to two requirements:
XML code must be well formed and must begin with the <?xml version=1.0?> tag, which is never used in another context. In addition, all tags must appear between the <list> and </list> tags. Browsers do not handle poorly defined XML code as well as they do HTML. If you write badly formed HTML code, such as forgetting a terminating tag before another beginning tag, a browser would not display an error message; instead, the browser would show an incomplete sentence or a badly placed graphic image. When some of the HTML is incorrect, later HTML code is affected. Bad XML code produces actual error ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access