xmlReadData_variable.Rd
Read XML Data From Type 'xmlReadData_variable' as R Variable
xmlReadData_variable(xmlItem)
xmlItem | ( |
---|
(vector
)
data <- '<variable name="myvar" value="4" type="numeric"/>' item <- XML::xmlRoot(XML::xmlParse(data,asText=TRUE)) value <- RTest::xmlReadData_variable(item) print("5 shall be the outcome")#> [1] "5 shall be the outcome"#> [1] 5