| 1 | package XML::Hash::XS; | ||
| 2 | |||
| 3 | 8 | ▶ | use 5.008008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 8 | ▶ | use vars qw($VERSION @EXPORT @EXPORT_OK); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 8 | ▶ | use base 'Exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 8 | @EXPORT_OK = @EXPORT = qw( hash2xml xml2hash ); | |
| 9 | |||
| 10 | 8 | $VERSION = '0.56'; | |
| 11 | |||
| 12 | 8 | require XSLoader; | |
| 13 | 8 | XSLoader::load('XML::Hash::XS', $VERSION); | |
| 14 | |||
| 15 | 8 | 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 | $suppress_empty | ||
| 19 | 8 | ▶ | ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | # 'NATIVE' or 'LX' | ||
| 22 | 8 | $method = 'NATIVE'; | |
| 23 | |||
| 24 | # native options | ||
| 25 | 8 | $output = undef; | |
| 26 | 8 | $root = 'root'; | |
| 27 | 8 | $version = '1.0'; | |
| 28 | 8 | $encoding = ''; | |
| 29 | 8 | $utf8 = 1; | |
| 30 | 8 | $indent = 0; | |
| 31 | 8 | $canonical = 0; | |
| 32 | 8 | $use_attr = 0; | |
| 33 | 8 | $content = undef; | |
| 34 | 8 | $xml_decl = 1; | |
| 35 | 8 | $keep_root = 0;# | |
| 36 | 8 | $doc = 0; | |
| 37 | 8 | $max_depth = 1024; | |
| 38 | 8 | $buf_size = 4096; | |
| 39 | 8 | $trim = 0; | |
| 40 | 8 | $force_array = undef; | |
| 41 | 8 | $force_content = 0; | |
| 42 | 8 | $merge_text = 0; | |
| 43 | 8 | $suppress_empty = 0; | |
| 44 | |||
| 45 | # XML::Hash::LX options | ||
| 46 | 8 | $attr = '-'; | |
| 47 | 8 | $text = '#text'; | |
| 48 | 8 | $cdata = undef; | |
| 49 | 8 | $comm = undef; | |
| 50 | |||
| 51 | 8 | 1; | |
| 52 | __END__ | ||