Inventory working with XML