Parse SVG text or file into an SVGDocument or SVGElement

parse_svg_doc(x, encoding = "", ..., as_html = FALSE, options = "NOBLANKS")

parse_svg_elem(
  x,
  encoding = "",
  ...,
  as_html = FALSE,
  options = "NOBLANKS",
  as_pattern = FALSE
)

Arguments

x, encoding, ..., as_html, options

options passed to xml2::read_xml()

as_pattern

parse the root node as a pattern node. Default: FALSE

Value

XMLDocument or XMLElement