Narrow options for casting strings to bool with XML parsing.