Configuration Xml ((full)) Instant

Elements are the building blocks. They typically represent a specific setting or a category of settings.

For complex applications, you should define an . This ensures that the configuration file is valid before the application tries to read it. configuration xml

import xml.etree.ElementTree as ET

tree = ET.parse('config.xml') root = tree.getroot() db_host = root.find('database/host').text Elements are the building blocks