fetch and transform xml according to isGoogleAppEngine and isProductionServer