XmlRpcMethodValue * vortex_xml_rpc_method_value_new_from_string ( VortexCtx ctx,
XmlRpcParamType  type,
const char *  string_value 
)

Creates a new XmlRpcMethodValue object from the given type, using as value the string provided.

The string provided must contain a value according to the type provided. See also vortex_xml_rpc_method_value_new_from_string2, which could create a method value by providing all its values as string references.

Currently, the following types are supported to be translated from the string form into the native type representation:

Parameters
ctxThe context where the method value is being created.
typeThe type for the new instance.
string_valueA string value, representing the type configured.
Returns
A newly created XmlRpcMethodValue or NULL if fails.

References method_value_new, vortex_support_strtod(), XML_RPC_ARRAY_VALUE, XML_RPC_BASE64_VALUE, XML_RPC_BOOLEAN_VALUE, XML_RPC_DATE_VALUE, XML_RPC_DOUBLE_VALUE, XML_RPC_INT_VALUE, XML_RPC_NONE_VALUE, XML_RPC_STRING_VALUE, and XML_RPC_STRUCT_VALUE.

Referenced by vortex_xml_rpc_method_call_create_value_from_string(), and vortex_xml_rpc_method_value_new_from_string2().