xml_url: The URL of an XML document

Description Usage Arguments Value Examples

View source: R/xml_url.R

Description

This is useful for interpreting relative urls with url_relative.

Usage

1

Arguments

x

A node or document.

Value

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

Examples

1
2
3
4
5
catalog <- read_xml(xml2_example("cd_catalog.xml"))
xml_url(catalog)

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

xml2 documentation built on Jan. 24, 2018, 5:21 p.m.