| xml_url {xml2} | R Documentation |
This is useful for interpreting relative urls with url_relative.
xml_url(x)
x |
A node or document. |
A character vector of length 1. Returns NA if the name is
not set.
catalog <- read_xml("http://www.xmlfiles.com/examples/cd_catalog.xml")
xml_url(catalog)
x <- read_xml("<foo/>")
xml_url(x)