Fetch xml text safely; avoids null deref
Sotre a ref to the request in the response objects
fix get_node_attribute to work only with Element node