pyspc.io.xml.from_xml
Bibliothèque pyspc du projet pyspc - IO - XML - Lecture de fichiers Source : libhydro
Functions
|
Return cast(text) |
|
Parse le fichier filename et retourne un ElementTree |
|
Return cast(element/tag.text) or None. |
|
Return cast(element/tag.text) or None. |
|
Remove namespace in the passed etree.Element in place. |
- pyspc.io.xml.from_xml.from_file(filename)[source]
Parse le fichier filename et retourne un ElementTree
- Paramètres:
filename (str) – Nom de fichier XML
- Renvoie:
tree – instance ElementTree renvoyée par lxml.etree.parse(filename)
- Type renvoyé:
lxml.etree._ElementTree
- pyspc.io.xml.from_xml.get_attrib(element, attrib, cast=<class 'str'>)[source]
Return cast(element/tag.text) or None.