updated xml parsing