File Coverage

blib/lib/XML/Hash/XS.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 23 23 100.0


line stmt bran cond sub pod time code
1             package XML::Hash::XS;
2              
3 8     8   608581 use 5.008008;
  8         35  
4 8     8   48 use strict;
  8         15  
  8         194  
5 8     8   42 use warnings;
  8         22  
  8         263  
6 8     8   44 use vars qw($VERSION @EXPORT @EXPORT_OK);
  8         13  
  8         564  
7 8     8   65 use base 'Exporter';
  8         21  
  8         1187  
8             @EXPORT_OK = @EXPORT = qw( hash2xml xml2hash );
9              
10             $VERSION = '0.51';
11              
12             require XSLoader;
13             XSLoader::load('XML::Hash::XS', $VERSION);
14              
15 8         1880 use vars qw($method $output $root $version $encoding $utf8 $indent $canonical
16             $use_attr $content $xml_decl $doc $max_depth $attr $text $trim $cdata
17             $comm $buf_size $keep_root $force_array $force_content $merge_text
18 8     8   53 );
  8         17  
19              
20             # 'NATIVE' or 'LX'
21             $method = 'NATIVE';
22              
23             # native options
24             $output = undef;
25             $root = 'root';
26             $version = '1.0';
27             $encoding = '';
28             $utf8 = 1;
29             $indent = 0;
30             $canonical = 0;
31             $use_attr = 0;
32             $content = undef;
33             $xml_decl = 1;
34             $keep_root = 0;#
35             $doc = 0;
36             $max_depth = 1024;
37             $buf_size = 4096;
38             $trim = 0;
39             $force_array = undef;
40             $force_content = 0;
41             $merge_text = 0;
42              
43             # XML::Hash::LX options
44             $attr = '-';
45             $text = '#text';
46             $cdata = undef;
47             $comm = undef;
48              
49             1;
50             __END__