find_node_level: Find the level of the current node releative to the document

View source: R/utils.R

find_node_levelR Documentation

Find the level of the current node releative to the document

Description

Find the level of the current node releative to the document

Usage

find_node_level(node)

Arguments

node

an XML node object

Value

a number indicating how nested the current node is. 0 represents the document itself, 1 represents all child elements of the document, etc.


carpentries/pegboard documentation built on Nov. 13, 2024, 8:53 a.m.