csl_style_xml: Get XML for a CSL style

View source: R/style_xml.R

csl_style_xmlR Documentation

Get XML for a CSL style

Description

Get XML for a CSL style

Usage

csl_style_xml(input, raw = FALSE, ...)

Arguments

input

(character) URL or local file path. Required.

raw

(logical) If FALSE (default) return parsed XML to class xml_document. If TRUE, get character string of XML.

...

Curl options passed on to crul::HttpClient

Details

This function fetches the style XML document. If you want parsed data, see csl_style_load().

Value

an object of class xml_document, see xml2 to parse the object

Examples

ajps <- 'http://zotero.org/styles/american-journal-of-political-science'
if (crul::ok(ajps)) {
csl_style_xml(ajps)
}

ropensci/seasl documentation built on Sept. 11, 2022, 7:21 p.m.