tag {tinytest2JUnit} | R Documentation |
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.
tag(name, attributes = list(), content = list())
name |
|
attributes |
|
content |
|
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.
a XMLtag
-object.