BUG for XML parsing