Fix XML text selection