To cite package ‘xml2’ in publications use:

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

Corresponding BibTeX entry:

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