| 1 | package WWW::Google::Contacts::Data; | ||
| 2 | { | ||
| 3 | 17 | $WWW::Google::Contacts::Data::VERSION = '0.39'; | |
| 4 | } | ||
| 5 | |||
| 6 | 17 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 17 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 17 | ▶ | use XML::Simple (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 17 | ▶ | use Encode; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 0 | ▶ | sub decode_xml { |
|
Subroutine
decode_xml: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | 0 | my ( $class, $content ) = @_; | |
| 14 | |||
| 15 | 0 | my $xmls = XML::Simple->new; | |
| 16 | 0 | my $data = $xmls->XMLin( | |
| 17 | decode_utf8($content), | ||
| 18 | SuppressEmpty => undef, | ||
| 19 | KeyAttr => [] | ||
| 20 | ); | ||
| 21 | 0 | return $data; | |
| 22 | } | ||
| 23 | |||
| 24 | 0 | ▶ | sub encode_xml { |
|
Subroutine
encode_xml: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 25 | 0 | my ( $class, $content ) = @_; | |
| 26 | |||
| 27 | 0 | my $xmls = XML::Simple->new; | |
| 28 | 0 | my $xml = $xmls->XMLout( $content, KeepRoot => 1 ); | |
| 29 | 0 | return encode_utf8($xml); | |
| 30 | } | ||
| 31 | |||
| 32 | 17 | 1; | |