def xml_check_text_content(xml_doc_a, xml_doc_b, xpath):
    """Check for Text content."""
    if (xml_doc_a.nodeType == xml_doc_a.TEXT_NODE or xml_doc_a.nodeType ==
        xml_doc_a.CDATA_SECTION_NODE):
        if xml_doc_a.data != xml_doc_b.data:
            return False, 'Text Node data differs [%s] != [%s] at [%s]' % (
                xml_doc_a.data, xml_doc_b.data, xpath)
        return True, None
    return None, None
