Revert "fixed minor bug in xml parser"

This reverts commit 908d8d5fde6f03e41adb10bc8163e5cc2c0dc285.