10.1.1.12.2. XmlFile

class Patro.Common.Xml.XmlFile.XmlFileMixin(path, data=None)[source]

Bases: object

Class mixin to parse a XML file using lxml module

__init__(path, data=None)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod get_text_element(root, path)[source]

Utility function to a text element from a xpath and a root

static get_xpath_element(root, path)[source]

Utility function to get an element from a xpath and a root

static get_xpath_elements(root, path)[source]

Utility function to get elements from a xpath and a root

parse()[source]

Parse a XML file and return the etree

path