Change HTML hooks to SGML hooks

This way we can catch XML too