No project description provided
Project description
This is for xml
xml thing lol
this was made for the module hxml
Here is the code for this module
class init:
def __init__(self) -> None:
pass
def _get_data_recursive(self, element):
if len(element) == 0:
return element.text.strip() if element.text else None
else:
data = {}
for child in element:
data[child.tag] = self._get_data_recursive(child)
return data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file hollos_get_data_recursive-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: hollos_get_data_recursive-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77ae4f99ca129532fcc51c5cc3ae5f82700978f820a112ae9cd0fa596e304e9 |
|
MD5 | f9d5fa7da95bbcb4b60018e44348de94 |
|
BLAKE2b-256 | ef3051f805b8c3df88cb3c7e4e30b7767e75f69d8d775c5ef9408149c5c7225f |