(self, node)
Parses an XML response node from Facebook.
Parses an XML response node from Facebook.
Parses an XML response node from Facebook .
def _parse_response_item(self, node):
        """Parses an XML response node from Facebook."""
        if node.nodeType == node.DOCUMENT_NODE and \
            node.childNodes[0].hasAttributes() and \
            node.childNodes[0].hasAttribute('list') and \
            node.childNodes[0].getAttribute('list') == "true":
            return {node.childNodes[0].nodeName: self._parse_response_list(node.childNodes[0])}
        elif node.nodeType == node.ELEMENT_NODE and \
            node.hasAttributes() and \
            node.hasAttribute('list') and \
            node.getAttribute('list')=="true":
            return self._parse_response_list(node)
        elif len(filter(lambda x: x.nodeType == x.ELEMENT_NODE, node.childNodes)) > 0:
            return self._parse_response_dict(node)
        else:
            return ''.join(node.data for node in node.childNodes if node.nodeType == node.TEXT_NODE)
def _parse_response_item ( self , node ) : if node . nodeType == node . DOCUMENT_NODE and node . childNodes [ 0 ] . hasAttributes ( ) and node . childNodes [ 0 ] . hasAttribute ( 'list' ) and node . childNodes [ 0 ] . getAttribute ( 'list' ) == "true" : return { node . childNodes [ 0 ] . nodeName : self . _parse_response_list ( node . childNodes [ 0 ] ) } elif node . nodeType == node . ELEMENT_NODE and node . hasAttributes ( ) and node . hasAttribute ( 'list' ) and node . getAttribute ( 'list' ) == "true" : return self . _parse_response_list ( node ) elif len ( filter ( lambda x : x . nodeType == x . ELEMENT_NODE , node . childNodes ) ) > 0 : return self . _parse_response_dict ( node ) else : return '' . join ( node . data for node in node . childNodes if node . nodeType == node . TEXT_NODE )