XML::Hash::XS - Simple and fast hash to XML conversion
use XML::Hash::XS; my $xmlstr = hash2xml \%hash; hash2xml \%hash, output => $FH;
This module implements simple hash to XML converter written in C using libxml2 library.
$hash is reference to hash
Root node name.
XML document version
XML output encoding
if idnent is "1", XML output should be indented according to its hierarchic structure.
if indent is "0", XML output will all be on one line.
XML output method
if output is undefined, XML document dumped into string.
if output is FH, XML document writes directly to a filehandle or a stream.
Yuriy Ustushenko, <<yoreek@yahoo.com>>
Copyright (C) 2012 Yuriy Ustushenko
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install XML::Hash::XS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Hash::XS
CPAN shell
perl -MCPAN -e shell install XML::Hash::XS
For more information on module installation, please visit the detailed CPAN module installation guide.