BUG: using read_xml with iterparse and names will ignore duplicate values
- [X] closes #47483
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions. _(not necessary)_
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature. _(not necessary)_

@jreback - Since the `iterparse` is a new, unreleased IO XML feature for 1.5, I was [advised](https://github.com/pandas-dev/pandas/pull/47414#discussion_r902946257) by @mroeschke  on a related fix that a whatsnew note was not needed. The OP of bug was using a dev version of pandas.

 got it (could add this PR number alongside the original note as well) but nbd Thanks @ParfaitG. Yeah if you have a follow up PR in mind, adding an additional ``` :issue:`47630` ``` to the 1.5.0 whatsnew note related to this feature would be good