XML Dataset: simple xml parsing
- Documentation: https://xmldataset.readthedocs.io
A Python library that simplifies the extraction of datasets from XML content.
XML is a simple markup format. Whilst simple, extracting data of interest is often more complicated than it needs to be.
xmldataset addresses this through an easy to use plaintext declaration that follows the structure of the XML document. The declaration is indented, matching the XML structure, the data we are interested in is tagged against a dataset.
Features
- Handles missing data from the XML structure, if it’s missing in the XML it is not populated in the dataset
- Handles both XML Elements and Attributes using the plaintext collection schema (attributes are depicted as a sublevel of an element)
- Easy to rename XML attributes/elements during processing to meet your requirements
- Inline manipulation of XML content through the process mechanism
- Dispatch mechanism, allows datasets to be dispatched for every N instance to allow asynchronous processing