added static loadXml function