Description Usage Arguments Details Value Author(s) References See Also
An XML node may have child or sub-nodes. These functions allow one to access them as if they were an S list (without element names).
1 2 3 4 | ## S3 method for class 'XMLChildren'
x[...]
## S3 method for class 'XMLChildren'
x[[i]]
|
x |
the |
... |
the indeces of the nodes to retrieve. |
i |
the index of the single sub-node to retrieve |
The XMLChildren
object is a reference to an internal
C-level data structure managed by libxslt
.
From this, we extract references to the different
children and represent these references as S objects.
[.XMLChildren
returns a list
whereas [[.XMLChildren
returns
a single element of class XMLNode
.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/Sxslt, http://www.omegahat.org/SXalan, http://www.w3.org/Style/XSL http://xmlsoft.org/XSLT
[.XMLAttributes
[[.XPathNodeSet
node.xsl
, node.xml
and ok.R
in the examples directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.