Improved xml parsing performance