What about `typeInXmlAttribute`? A bit longer but maybe more descriptive...