Read XML Data From Type 'xmlReadData_vector' as R Vector

xmlReadData_vector(xmlItem)

Arguments

xmlItem

(XMLNode) Object of class XMLNode that defines the a vector and fullfills XSD definition 'xmlReadData_vector'.

Value

(vector)

See also

Examples

data <- '<testvector type="numeric"><element>1</element><element>2</element></testvector>' item <- XML::xmlRoot(XML::xmlParse(data,asText=TRUE)) value <- RTest::xmlReadData_vector(item) print("2 shall be the outcome")
#> [1] "2 shall be the outcome"
print(length(value))
#> [1] 2