code: def get_xpath(stmt, qualified=False, prefix_to_module=False):
      
      return mk_path_str(stmt, with_prefixes=qualified,
                         prefix_onchange=True, prefix_to_module=prefix_to_module)
docs: Gets the XPath of the statement.
      Unless qualified=True, does not include prefixes unless the prefix
        changes mid-XPath.
  
      qualified will add a prefix to each node.
  
      prefix_to_module will resolve prefixes to module names instead.
  
      For RFC 8040, set prefix_to_module=True:
        /prefix:root/node/prefix:node/...
  
      qualified=True:
        /prefix:root/prefix:node/prefix:node/...
  
      qualified=True, prefix_to_module=True:
        /module:root/module:node/module:node/...
      prefix_to_module=True: /module:root/node/module:node/...