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

Description Usage Arguments Value Examples

View source: R/serialize.R

Description

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

Usage

1
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

1
2
3
params <- list(1L, 1:3, rnorm(3), LETTERS[1:3], charToRaw("A"))
xml <- to_xmlrpc("some_method", params)
from_xmlrpc(xml)

xmlrpc2 documentation built on May 2, 2019, 4:52 p.m.