May 2019
Beginner to intermediate
650 pages
14h 50m
English
XML – eXtensible Markup Language 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 (document object model) 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/continents.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> ...
Read now
Unlock full access