NAME
RPC::XML::Deparser::XS - Fast XML-RPC deparser written in C
SYNOPSIS
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>
DESCRIPTION
This module provides a single function "deparse_rpc_xml" to deparse (serialize) XML-RPC requests and responses.
- deparse_rpc_xml
-
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.
EXPORT
"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 ();
PERFORMANCE
"deparse_rpc_xml" is about 1.7 times faster than $obj->as_string()
.
DEPENDENCY
- Libxml2
-
This is not a perl module. We don't use XML::LibXML. See http://xmlsoft.org/.
- glib2
-
This is not a perl module. See http://www.gnome.org/.
- IPC::Run
- RPC::XML
- Test::Exception
- Test::More
SEE ALSO
COPYRIGHT AND LICENSE
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