Set<CharacterState> xmlMissingStates = new HashSet<CharacterState>();
for ( Character symbol : stateForSymbol.keySet() ) {
char sym = symbol.charValue();
if ( sym != '-' && sym != '?' ) {
String symString = symbol.toString();
CharacterState xmlState = xmlStateSet.createCharacterState(symString);
xmlMissingStates.add(xmlState);
DiscreteCharState tbState = stateForSymbol.get(symbol);
xmlState.setLabel(symString);
attachTreeBaseID((Annotatable)xmlState,tbState,DiscreteCharState.class);
}
}
// the missing symbol ("?") includes all others, including gap ("-")