XMLReader's icon

XMLReader 1.3 Tools 3.5 Community

Submitted by user ACB_Gamez; MIT; 2022-12-04

A high level class to allow for reading and parsing xml files. xml documents are read into a dictionary and simple find and find_all methods have been implemented.

FULL DOCUMENTATION IN README AND COMMENTED IN FILE.

In the xml dictionary, each node element has _n appended to it, where n is the n'th occurence starting from 0. Child nodes exist as key/value pairs in the dictionary of their parent node, much like JSON. Node text is saved as a child of the node as node_name + _text. Attributes are saved in a child dict with the node_name + _attrs, which is a dictionary where each key is an attribute and each value is the value.


View files Download Submit an issue Recent Edits