def METHOD_NAME(product_amount_tuples):
    return ''.join([
        '<ns0:entry id="{id}" quantity="{quantity}" />'.format(
            id=p, quantity=amt,
        ) for p, amt in product_amount_tuples
    ])