def xml_check_type(xml_doc_a, xml_doc_b, xpath):
    """Check for the type."""
    if xml_doc_a.nodeType != xml_doc_b.nodeType:
        return False, 'Node types differ [%s] != [%s] at [%s]' % (xml_doc_a
            .nodeType, xml_doc_b.nodeType, xpath)
    return None, None
