allow xml grammars by name for known types, i.e. struct and richtext