I would like to add total product quantity

How can i add total product quantity on variants and shown at xml

eg I have a product of 3 different sizes, having 1 item each and i need to show the total availability of 3 products on this code SKU