def __add_xpath_ext(self, children, req):
    xpath_extractors = req.config.get('extract-xpath')
    for varname in xpath_extractors:
        cfg = ensure_is_dict(xpath_extractors, varname, 'xpath')
        children.append(JMX._get_xpath_extractor(varname, cfg['xpath'], cfg.get('default', 'NOT_FOUND'), cfg.get('validate-xml', False), cfg.get('ignore-whitespace', True), cfg.get('match-no', '-1'), cfg.get('use-namespaces', False), cfg.get('use-tolerant-parser', False), cfg.get('scope', None), cfg.get('from-variable', None)))
        children.append(etree.Element('hashTree'))
def __add_xpath_ext(self, children, req):
    xpath_extractors = req.config.get('extract-xpath')
    for varname in xpath_extractors:
        cfg = ensure_is_dict(xpath_extractors, varname, 'xpath')
        children.append(JMX._get_xpath_extractor(varname, cfg['xpath'], cfg.get('default', 'NOT_FOUND'), cfg.get('validate-xml', False), cfg.get('ignore-whitespace', True), cfg.get('match-no', '-1'), cfg.get('use-namespaces', False), cfg.get('use-tolerant-parser', False), cfg.get('scope', None), cfg.get('from-variable', None)))
        children.append(etree.Element('hashTree'))