Parse alternatives number from text to xml source.