Learn R Programming

RTest (version 1.2.6)

xmlReadData_text: Read XML Data From Type 'xmlReadData_text' as R Variable

Description

Read XML Data From Type 'xmlReadData_text' as R Variable

Usage

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

XMLNode-class

Examples

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab