xml parsing for SPX