佐野 拓 > RPC-XML-Deparser-XS-0.02 > RPC::XML::Deparser::XS

Download:
RPC-XML-Deparser-XS-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

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 3.5 times faster than $obj->as_string().

DEPENDENCY ^

glib2

This is not a perl module. See http://www.gnome.org/.

IPC::Run
RPC::XML
Test::Exception
Test::More

SEE ALSO ^

RPC::XML

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

syntax highlighting: