xml_miner.xml package¶
Submodules¶
xml_miner.xml.base_xml module¶
XML class: render xml file or xml strings to xml tree object
-
class
xml_miner.xml.base_xml.
XML
(top_level_obj=None)¶ Bases:
object
- XML:
- general xml class, xml tree object can be generated from - xml file - xml string
-
classmethod
from_file
(xml_file: str)¶ create xml object from filename
- params:
- xml_file (string): xml file
- output:
- xml object: ElementTree object
-
classmethod
from_string
(xml_string: str)¶ create xml object from xml_string
- params:
- xml_string (string): xml string
- output:
- xml object: ElementTree object
-
static
text_from_element
(element)¶ the text value of an xml element
xml_miner.xml.tk_trxml module¶
TRXML class: render field or strings to trxml class, and select using xpath
-
class
xml_miner.xml.tk_trxml.
TKTRXML
(top_level_obj=None)¶ Bases:
xml_miner.xml.base_xml.XML
TRXML: - render field or strings to trxml class - and select using xpath
-
filename
¶ filename of the oringal file
normally stored as an attribute of the top level tag
-
working_entity
¶ the xml element to apply searching
-
xml_entity
¶ the xml part of the tree
-
xml_miner.xml.tk_xml module¶
TRXML class: render fild or strings to xml class, and select values
-
class
xml_miner.xml.tk_xml.
TKXML
(top_level_obj=None)¶ Bases:
xml_miner.xml.base_xml.XML
- TKXML class:
- xml tree object generated from - xml file - xml string
-
working_entity
¶ the xml element to apply searching
Module contents¶
xml and trxml classes
-
class
xml_miner.xml.
TKXML
(top_level_obj=None)¶ Bases:
xml_miner.xml.base_xml.XML
- TKXML class:
- xml tree object generated from - xml file - xml string
-
working_entity
¶ the xml element to apply searching
-
class
xml_miner.xml.
TKTRXML
(top_level_obj=None)¶ Bases:
xml_miner.xml.base_xml.XML
TRXML: - render field or strings to trxml class - and select using xpath
-
filename
¶ filename of the oringal file
normally stored as an attribute of the top level tag
-
working_entity
¶ the xml element to apply searching
-
xml_entity
¶ the xml part of the tree
-