I'm trying to create a corpus and a vcorpus with a bulk of .xml files, for quantitative linguistics With txt files I usually write
library(tm)
library(stopwords)
library(magrittr)
library(dplyr)
library(readtext)
library(quanteda)
library(quanteda.textmodels)
library(quanteda.textplots)
library(quanteda.textstats)
object <- readtext ("directory")
and
objectV <- DirSource ("directory") %>%
VCorpus(readerControl = list(language = "it-IT"))
Trying with a directory containing xml files I get this error
The xml format does not fit for the extraction without xPath
Use xPath method instead
Any suggestion? Thank you! E.