pasteXML {XiMpLe} | R Documentation |
Paste methods for XiMpLe XML objects
Description
These methods can be used to paste objects if class XiMpLe_node
or XiMpLe_doc
.
Usage
pasteXML(obj, ...)
## S4 method for signature '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 signature '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_")
)
Arguments
obj |
An object of class |
... |
Additional options for the generic method, see options for a specific method, respectively. |
level |
Indentation level. |
shine |
Integer, controlling if the output should be formatted for better readability. Possible values:
|
indent.by |
A charachter string defining how indentation should be done. Defaults to tab. |
tidy |
Logical,
if |
tidy.omit |
A character vector with node names that should be excluded from |
as_script |
Logical, if |
func_rename |
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 |
Note
The functions pasteXMLNode() and pasteXMLTree() have been replaced by the pasteXML methods. They should no longer be used.