what are you trying to do ?
the library(xmlparsedata) has description xmlparsedata: Parse Data of 'R' Code as an 'XML' Tree
So I don't think its relevant for you to try xml files on its functions. Rather it would be for if you were passing R scripts (like for linting etc.)
you can read the xml with read_xml from xml2 ,and find elements in it etc
in short I think you dont need xmlparsedata most likely