Unify sgml and xml modes
Remove all bs stuff