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]]
the indeces of the nodes to retrieve.
the index of the single sub-node to retrieve
XMLChildren object is a reference to an internal
C-level data structure managed by
From this, we extract references to the different
children and represent these references as S objects.
[.XMLChildren returns a list
a single element of class
Duncan Temple Lang <[email protected]>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.