# xml

This section describes the thin wrapper api functions for processing XML data. The underlying functionality primarily deals with dictionaries and [Element](https://docs.python.org/3/library/xml.etree.elementtree.html) or [ElementTree](https://docs.python.org/3/library/xml.etree.elementtree.html#module-xml.etree.ElementTree) objects

[functions](/docs/xml/functions.md)

The thin api functions used for the maci library that enable XML functionality, use and wrap the native xml.etree library shipped with the python standard library and the xmltodict external library for its underlying functionality.

For more information on the xml.etree api, visit: <https://docs.python.org/3/library/xml.etree.elementtree.html>

For more information on xmltodict, visit: <https://pypi.org/project/xmltodict/>

**Security awareness**: It is important to evaluate handling XML data carefully as there are known vulnerabilities in dealing with XML data. Please refer to the official python documentation above.

Additionally, see the provided tooling to potentially assist with vulnerabilities [\_defuse\_xml\_stdlib](/docs/xml/functions/maci._defuse_xml_stdlib.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.macilib.org/docs/xml.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
