Learn R Programming

do (version 2.0.0.1)

all_children: Extract all children nodes

Description

Extract all children nodes

Usage

all_children(x, res = "do not change", i = 1)

Value

nodeset

Arguments

x

one or more documents, nodes, or node sets.

res

omit. do not make any change.

i

must be 1

Examples

Run this code
txt='
        
            (22)
            where?
        
      
        stays 
        disappears
        disappears
        disappears
        stays
      
    '
    library(xml2)
    html=read_html(txt)
    
    all_children(html)

Run the code above in your browser using DataLab