RPC::XML::Deparser::XS - Fast XML-RPC deparser written in C
use RPC::XML; use RPC::XML::Deparser::XS; my $req = RPC::XML::request->new( foo => RPC::XML::int->new(123) ); my $xml = deparse_rpc_xml($req); # $xml ==> <?xml version="1.0"?> # <methodCall> # <methodName>foo</methodName> # <params> # <param><value><int>123</int></value></param> # </params> # </methodCall>
This module provides a single function "deparse_rpc_xml" to deparse (serialize) XML-RPC requests and responses.
my $xml = deparse_rpc_xml($obj);
Deparse an object of either RPC::XML::request or RPC::XML::response.
Note that UTF-8 flags must not be turned on in strings in the argument structure.
"deparse_rpc_xml" is exported by default. If you don't want it to be exported, just say like this:
use RPC::XML::Deparser::XS ();
"deparse_rpc_xml" is about 3.5 times faster than $obj->as_string().
$obj->as_string()
This is not a perl module. See http://www.gnome.org/.
Copyright (C) 2008 YMIRLINK Inc.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself
To install RPC::XML::Deparser::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPC::XML::Deparser::XS
CPAN shell
perl -MCPAN -e shell install RPC::XML::Deparser::XS
For more information on module installation, please visit the detailed CPAN module installation guide.