Examples for 'xml2::xml_url'


The URL of an XML document

Aliases: xml_url

Keywords:

### ** Examples

catalog <- read_xml(xml2_example("cd_catalog.xml"))
xml_url(catalog)
[1] "/usr/local/R/4.2/site-library/xml2/extdata/cd_catalog.xml"
x <- read_xml("<foo/>")
xml_url(x)
[1] NA

[Package xml2 version 1.3.3 Index]