Reading XML files

XML files were designed as a way to transport and store data. They are platform-independent since the data is stored in a plain text file. Although similar to HTML, XML differs from HTML since the former is designed for display purposes, whereas XML data is designed for data. XML files are sometimes used as an interchange format for GIS data that is going between various software systems.

Getting ready

XML documents have a tree-like structure that is composed of a root element, child elements, and element attributes. Elements are also called nodes. All XML files contain a root element. This root element is the parent to all other elements or child nodes. The following code example illustrates the structure of an XML document. Unlike ...

Get Programming ArcGIS with Python Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.