txx_create_element: Create an XML element from a string

Description Usage Arguments Value Examples

View source: R/txx_create_element.R

Description

Converts a string into an XML element by adding start and end tags. The string can also be an XML element, allowing for easy nesting of XML elements.

Usage

1
txx_create_element(string, tag)

Arguments

string

A character string

tag

The character string used in the start and end tags.

Value

A character string wrapped in the tag start and end tags.

Examples

1
2
3
4
txx_create_element(string = "Alice", tag = "name")

txx_create_element(string = "<name>Alice</name><age>53</age>",
                   tag = "patient")

michael-ccccc/textured documentation built on Dec. 21, 2021, 5:56 p.m.