Chapter 6. XML Parsing Made Easy

In this chapter, we will cover the following recipes:

  • Processing XML data using stream reader
  • Writing XML data using stream writer
  • Processing XML data using the QDomDocument class
  • Writing XML data using the QDomDocument class
  • Using Google's Geocoding API

Introduction

XML is the file extension of a type of file format called Extensible Markup Language, which is used to store information in a structured format. The XML format is used extensively for the Web, as well as other applications. HTML, for instance, is the file format used for creating web pages and is based upon the XML format. Starting from Microsoft Office 2007, Microsoft Office uses the XML-based file formats, such as .docx, .xlsx, .pptx, and so on.

Get Qt5 C++ GUI Programming Cookbook 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.