TYP: Add typing for remaining IO XML methods with conditional for lxml
- [X] references #40131
- [X] tests passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry (not necessary)

this is fine, ping when CI finishes and greenish (failure is being fixed elsewhere) thanks @ParfaitG 