Updated code to parse Citrix XMLwq