February 2019
Beginner to intermediate
284 pages
6h 20m
English
eXtensible Markup Language (XML) is a very popular data format. Ajax responses from Web services are usually returned as text or XML. It has standard native support in JavaScript via the DOM APIs and doesn't require additional parsing. Although it is still common to find data in XML format, CSV and JSON alternatives, if available, are usually smaller and easier to work with.
This is an example of an XML file with the same data as the CSV file shown earlier (Data/sample.xml):
<continents> <continent> <name>North America</name> <population>579024000</population> <area unit="km">24490000</area> </continent> <continent> <name>Asia</name> <population>4436224000</population> <area unit="km">43820000</area> </continent> ... <continent> <name>Antarctica</name> ...
Read now
Unlock full access