Read XML Data From Type 'xmlReadData_text' as R Variable

xmlReadData_text(xmlItem)

Arguments

xmlItem

(XMLNode) Object of class XMLNode that defines the a simple variable and fullfills XSD definition 'xmlReadData_text'.

Value

(vector)

See also

Examples

data <- '<variable type="character">My text is awesome</variable>' item <- XML::xmlRoot(XML::xmlParse(data,asText=TRUE)) value <- RTest::xmlReadData_text(item) stopifnot(value=="My text is awesome")