SGML parser and entity manager
