Better options for parsing XML and HTML files with entities