View source: R/read_xml_as_path_value.R
read_xml_as_path_value | R Documentation |
Read XML File as Pairs of Paths and Values
read_xml_as_path_value(xml, dbg = TRUE, max_length = 100)
xml |
path, url or literal xml or anything else that is accepted by
|
dbg |
if |
max_length |
maximum number of characters reserved for printing the
path to the folder of the |
data frame with the full paths to the XML elements in the first and the text values of the XML elements in the second column.
url <- "https://www.w3schools.com/xml/note.xml"
# Original XML content
kwb.utils::catLines(readLines(url, warn = FALSE))
# Interpretation as Paths and Values
kwb.read:::read_xml_as_path_value(url)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.