improved xml parsing performance