R-Project can be used to parse, build and validate XML files. The xml2 R library is the latest xml parsing library and should be used instead of the outdated xml library.
Install dev version from github:
# install.packages("devtools") devtools::install_github("r-lib/xml2")
Links
Manual: https://rdrr.io/cran/xml2/man/
XML validation techniques - Using xml schema and xslt in R: https://ropensci.org/blog/2017/01/10/xslt-release/
https://www.r-bloggers.com/2017/01/xml2-1-1-1/
Short intro to functions but better to see version 2017/01/10 above: https://www.r-bloggers.com/2016/07/xml2-1-0-0/ - duplicate: https://blog.rstudio.com/2016/07/05/xml2-1-0-0/
xml2 R library doc: https://cran.r-project.org/web/packages/xml2/xml2.pdf
Switching from XML to xml2: https://gist.github.com/nuest/3ed3b0057713eb4f4d75d11bb62f2d66
Generating xml with minixml: https://coolbutuseless.github.io/2019/09/30/introducing-the-minixml-pac…
https://blog.rstudio.com/2015/04/21/xml2/
https://stackoverflow.com/questions/40336780/xml-parsing-selective-node…