opts_xml_document: Constructive options for class 'xml_document'

View source: R/s3-xml_document.R

opts_xml_documentR Documentation

Constructive options for class 'xml_document'

Description

These options will be used on objects of class 'xml_document'.

Usage

opts_xml_document(constructor = c("default", "next"), ..., simplify = TRUE)

Arguments

constructor

String. Name of the constructor, often the function used to construct the object.

...

Additional options used by user defined constructors through the opts object

simplify

Whether to remove the "meta http-equiv" and "!DOCTYPE" tags from the input if they're the default ones.

Details

Depending on constructor, we construct the object as follows:

  • "default" (default): We build the object using xml2::read_xml() or xml2::read_html() on a string.

  • "next" : Use the constructor for the next supported class.

Value

An object of class <constructive_options/constructive_options_xml_document>


constructive documentation built on Nov. 5, 2025, 7:14 p.m.