Using a better xml stripping algorithm