These methods can be used to paste objects if class XiMpLe_node
or XiMpLe_doc
.
pasteXML(obj, ...)# S4 method for XiMpLe_node
pasteXML(
obj,
level = 1,
shine = 1,
indent.by = getOption("XiMpLe_indent", "\t"),
tidy = TRUE,
tidy.omit = c("![CDATA[", "*![CDATA["),
as_script = FALSE,
func_rename = c(`?xml_` = "xml_", `!--_` = "comment_", `![CDATA[_` = "CDATA_",
`!DOCTYPE_` = "DOCTYPE_")
)
# S4 method for XiMpLe_doc
pasteXML(
obj,
shine = 1,
indent.by = getOption("XiMpLe_indent", "\t"),
tidy = TRUE,
tidy.omit = c("![CDATA[", "*![CDATA["),
as_script = FALSE,
func_rename = c(`?xml_` = "xml_", `!--_` = "comment_", `![CDATA[_` = "CDATA_",
`!DOCTYPE_` = "DOCTYPE_")
)
An object of class XiMpLe_node
or XiMpLe_doc
.
Additional options for the generic method, see options for a specific method, respectively.
Indentation level.
Integer, controlling if the output should be formatted for better readability. Possible values:
No formatting.
Nodes will be indented.
Nodes will be indented and each attribute gets a new line.
A charachter string defining how indentation should be done. Defaults to tab.
Logical,
if TRUE
the special characters "<" and ">" will be replaced with the entities
"<" and "gt;" in attributes and text values.
A character vector with node names that should be excluded from tidy
.
Logical, if TRUE
,
tags will be pasted as a sketch for a script to be run in conjunction with
functions generated by gen_tag_functions
. This script code will most
likely not run without adjustments, but is perhaps a good start anyway.
Named character vector defining which tags' functions should get a different name.
This makes it easier to get functions with valid names that generate special tag nodes.
Only used when as_script=TRUE
. Use the same names and values as you used in
gen_tag_functions
.
XiMpLe_node
,
XiMpLe_doc