Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xml_url

The URL of an XML document


Description

This is useful for interpreting relative urls with url_relative().

Usage

xml_url(x)

Arguments

x

A node or document.

Value

A character vector of length 1. Returns NA if the name is not set.

Examples

catalog <- read_xml(xml2_example("cd_catalog.xml"))
xml_url(catalog)

x <- read_xml("<foo/>")
xml_url(x)

xml2

Parse XML

v1.3.2
GPL (>= 2)
Authors
Hadley Wickham [aut], Jim Hester [aut, cre], Jeroen Ooms [aut], RStudio [cph], R Foundation [ctb] (Copy of R-project homepage cached as example)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.