Learn R Programming

xmlrpc2 (version 1.1)

from_xmlrpc: Convert from the XML-RPC Format into an R Object.

Description

Convert an object of class "xml_code" or a character in the XML-RPC Format into an R Object.

Usage

from_xmlrpc(xml, raise_error = TRUE)

Arguments

xml

a character string containing XML in the remote procedure call protocol format.

raise_error

a logical controling the behavior if the XML-RPC signals a fault. If TRUE an error is raised, if FALSE an object inheriting from "c("xmlrpc_error", "error")" is returned.

Value

an R object derived from the input.

Examples

Run this code
# NOT RUN {
params <- list(1L, 1:3, rnorm(3), LETTERS[1:3], charToRaw("A"))
xml <- to_xmlrpc("some_method", params)
from_xmlrpc(xml)
# }

Run the code above in your browser using DataLab