Initial commit

This commit is contained in:
2025-07-04 19:26:39 +02:00
commit c8682d4801
248 changed files with 12519 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Installer d'abord lxml avec pip install lxml
from lxml import etree
# Read content from XML file
with open("demo.xml", "rb") as file:
text = file.read()
# Read structure into Element object
structure = etree.fromstring(text)
print(type(structure))
print(structure.text)
print(structure.attrib)
for child in structure:
print(child, type(child), child.attrib)
print(structure.find("user"))