tag {tinytest2JUnit} | R Documentation |
XML tag
Description
Create a list object that roughly mimics the behaviour of a simplistic XML tag element. Supported are XML tag-name, tag-attributes and tag-content.
Usage
tag(name, attributes = list(), content = list())
Arguments
name |
|
attributes |
|
content |
|
Details
If a character vector is in the content it is converted to a single-length character vector.
See charVecToSingleLength()
Mixed content eg. a text string and a child xml tag next to each other is syntaxtically allows. In practices it does not occur for XML that is schema formatted with XSD (like JUnit). So for simplicity it is not supported here.
Value
a XMLtag
-object.