scripts/validation/xml_validator.py
def validate_xml_dump(xml_file):
    """
    Validates Rfam XML dumps using xmllint

    xml_file: An XML dump used to index Rfam release data

    return: True upon success, False for failure
    """
    process = Popen(["xmllint", "--schema", "http://www.ebi.ac.uk/ebisearch/XML4dbDumps.xsd", "--noout", xml_file],
                    stdin=PIPE, stdout=PIPE, stderr=PIPE)
    output = process.communicate()[1]

    # check if output contains the keyword validates
    if output.find("validates") == -1:
        return False

    return True

    Validates Rfam XML dumps using xmllint

    xml_file: An XML dump used to index Rfam release data

    return: True upon success, False for failure
    
Validates Rfam XML dumps using xmllint
xml_file: An XML dump used to index Rfam release data

True upon success, False for failure
Validates Rfam XML dumps using xmllint xml_file : An XML dump used to index Rfam release data True upon success False for failure
def validate_xml_dump(xml_file):
    process = Popen(["xmllint", "--schema", "http://www.ebi.ac.uk/ebisearch/XML4dbDumps.xsd", "--noout", xml_file],
                    stdin=PIPE, stdout=PIPE, stderr=PIPE)
    output = process.communicate()[1]
    if output.find("validates") == -1:
        return False
    return True
def validate_xml_dump ( xml_file ) : process = Popen ( [ "xmllint" , "--schema" , "http://www.ebi.ac.uk/ebisearch/XML4dbDumps.xsd" , "--noout" , xml_file ] , stdin = PIPE , stdout = PIPE , stderr = PIPE ) output = process . communicate ( ) [ 1 ] if output . find ( "validates" ) == - 1 : return False return True
Validates Rfam XML dumps using xmllint
xml_file: An XML dump used to index Rfam release data
Validates Rfam XML dumps using xmllint xml_file : An XML dump used to index Rfam release data
"""
    Validates Rfam XML dumps using xmllint

    xml_file: An XML dump used to index Rfam release data

    return: True upon success, False for failure
    """ # check if output contains the keyword validates
xml_file