def _query_html(html, key, raise_error=True):
    """Query the body of a WHOIS record."""
    nodes = html.xpath('//td[text() = "%s"]/following-sibling::td' % key)
    if len(nodes) == 1:
        return str(nodes[0].text_content())
    elif raise_error:
        raise KeyError('"%s"' % key)
