The XML library is another R library for extracting text data from the HTML web page. In the previous recipes, you saw how to extract text from a web page using readLines() and then using the rvest library. In this recipe, you will go through the functions of the XML library to extract the same data.
Before using the XML library, you have to install it into your computer. To install the XML library, you can use the following code:
install.packages("XML", dependencies = T)
Once the installation is completed, you are ready to implement this recipe.