def to_dict(self, **kw): u"""Converts the lxml object to a dict. possible kwargs: without_comments: bool """ _, value = helpers.etree_to_dict(self._xml, **kw).popitem() return value
def to_dict(self): u"""Converts the lxml object to a dict.""" _, value = helpers.etree_to_dict(self._xml).popitem() return value