XML in Python
XML: -
- XML stands for Extensible Markup Language.
- It uses user-defined tags to store data.
- It is used to store and transport data in a structured, human-readable format.
- Python provides several libraries to read, write, and parse XML.
- Python is commonly done using the built-in xml.etree.ElementTree module. This module allows you to parse, create, modify, and save XML data easily.
- Here, ElementTree is used for parsing and
creating XML, and minidom is used for pretty-printing XML.
output: -