Simplify xml parsing