IATI / refresher

A Python application which has the responsibility of tracking IATI data from around the Web and refreshing the core IATI software's data stores
GNU Affero General Public License v3.0
2 stars 0 forks source link

Handle XML comments and PIs #240

Closed akmiller01 closed 1 year ago

akmiller01 commented 1 year ago

e.g.

>>> root = etree.XML("<root><?my PI?><!-- empty --></root>")
>>> recursive_json_nest(root, {})
{'root': [{'PI()': [{'text()': 'PI'}], 'comment()': [{'text()': ' empty '}]}]}