[<-.XMLNode | R Documentation |
These functions allow one to assign a sub-node
to an existing XML node by name or index.
These are the assignment equivalents of the
subsetting accessor functions.
They are typically called indirectly
via the assignment operator, such as
x[["myTag"]] <- xmlNode("mySubTag")
.
## S3 replacement method for class 'XMLNode'
x[i] <- value
## S3 replacement method for class 'XMLNode'
x[i] <- value
## S3 replacement method for class 'XMLNode'
x[[i]] <- value
x |
the |
i |
the identifier for the position in the list of children
of |
value |
one or more |
The XML node x
containing the new or modified
nodes.
Duncan Templle Lang
https://www.w3.org, https://www.omegahat.net/RSXML/
[.XMLNode
[[.XMLNode
append.xmlNode
xmlSize
top <- xmlNode("top", xmlNode("next","Some text"))
top[["second"]] <- xmlCDataNode("x <- 1:10")
top[[3]] <- xmlNode("tag",attrs=c(id="name"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.