def METHOD_NAME(append):
    """
    Get attend xml pattern to check
    :params append : append value
    """
    if append == "default":
        pattern = [{'element_attrs': [".//source[@path='%s']" % file_path]}]
    else:
        pattern = [{'element_attrs': [".//source[@path='%s']" % file_path]},
                   {'element_attrs': [".//source[@append='%s']" % append]}]
    test.log.debug('Checking pattern is %s', pattern)
    vmxml = vm_xml.VMXML.new_from_dumpxml(vm_name)
    libvirt_vmxml.check_guest_xml_by_xpaths(vmxml, pattern)