Web technology is more than HTML and JavaScript used by browsers and web servers. Other types of clients use other protocols and data formats to exchange and present data. This chapter contains recipes on how to create content in formats other than the usual HTML and JavaScript.
Recipe 14-1. Exchanging Data with XML
Problem
XML is a structured data format with tags and attributes like HTML. It is usually a bit stricter as tags without a corresponding closing tag will cause an error. In HTML it is allowed to have a <hr> or <br> tag without a corresponding </hr> or </br>. The XHTML ...