format.XMLtag: Format method for XMLtag class

View source: R/xml.R

format.XMLtagR Documentation

Format method for XMLtag class

Description

Format S3 method for the XMLtag-class

Usage

## S3 method for class 'XMLtag'
format(x, level = 0, ...)

Arguments

x

an XMLtag-object

level

print depth level. For each level 2 spaces are added to the left. The content of a tag is automatically indented with 1 level. Except for text-content (see details).

...

to ignore

Details

Note, text content does not get indented or put on a new line, since whites space characters are of relevance.

Value

character(1) vector of the formatted XML tag.


tinytest2JUnit documentation built on June 22, 2024, 9:18 a.m.