It sounds like you have an XML file that has a whole bunch of "unique numbers" in it. In what sense they are "unique" is not really clear.
It sounds like in response to some kind of user input, you want to scan this file and then locate one of these numbers based on some logic you do not specify. You could use DOM parsing or perhaps preg_match to do that.
If you only want to send each once, you are going to need to keep track of which have already been sent and which have not which suggests you will either need to write a file somewhere to keep track of things or use a database.