Create an S-PLUS Object from an XML String

DESCRIPTION:

This function parses an XML string and creates the appropriate S-PLUS object.

USAGE:

parseXMLString(x)

ARGUMENTS:

x
a character string representing an XML object.

VALUE:

an S-PLUS object as described by the XML representation in the input string.

REFERENCES:

http://www.w3.org/XML

SEE ALSO:

,

EXAMPLES:

# Create and parse an XML string representing an S-PLUS list
x <- list(fuel.frame, hist, c(1:50))
annotation <- "An S-PLUS list object"
xml <- createXMLString(x, annotation, precision=5)
xx <- parseXMLString(xml)
all.equal(x, xx)