Updated for multiple XML's