xmlReadData_vector: Read XML Data From Type 'xmlReadData_vector' as R Vector

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.xmlRead.R

Description

Read XML Data From Type 'xmlReadData_vector' as R Vector

Usage

1

Arguments

xmlItem

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

Value

(vector)

Author(s)

Matthias Pfeifer matthias.pfeifer@roche.com

See Also

XMLNode-class

Examples

1
2
3
4
5
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")
print(length(value))

RTest documentation built on Dec. 4, 2019, 5:07 p.m.