Without knowing what you mean by "5000 tags for name" and "repeat date tag 5000 times" it's hard to say what you should do. Maybe you should change your XPath expression to search for all of those elements? Maybe you should write some kind of loop which does 5000 searches?
A sample of what the 5000 name tags actually look like would help, for example.
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
Devious Experiments for a Truly Passive Greenhouse!