XML Overview

Extensible Markup Language (XML) is a markup language used to describe data. It aims to provide a common way to transmit and store data, especially data frequently used in web applications. XML does not predefine tags. As such, it is more flexible and widely used.

An XML file consists of elements, attributes, and content.

  • An element refers to a tag pair that contains text, attributes, or other elements.

  • Attributes provide additional information about an element.

  • Content is the data or sub-element contained in an element.

XML supports the use of XML Schema Definition (XSD) or Document Type Definition (DTD) for defining the document structure. This allows you to customize rules to verify whether an XML document is in the expected format.

XML also supports features such as namespaces, entity references, comments, and processing instructions, making it easy to adapt to diverse data requirements.

The common library provides XML-related basic capabilities, including XML generation, XML parsing, and XML conversion.