To cite package ‘xml2’ in publications use:

Wickham H, Hester J, Ooms J (2025). xml2: Parse XML. R package version 1.3.8, https://github.com/r-lib/xml2.

Corresponding BibTeX entry:

  @Manual{,
    title = {xml2: Parse XML},
    author = {Hadley Wickham and Jim Hester and Jeroen Ooms},
    year = {2025},
    note = {R package version 1.3.8},
    url = {https://github.com/r-lib/xml2},
  }