line |
true |
false |
branch |
28
|
0 |
63 |
if ($opts->{'validate'}) |
30
|
0 |
0 |
if (defined $rng) { } |
38
|
0 |
63 |
if ($opts->{'string'}) { } |
|
0 |
63 |
elsif ($opts->{'fh'}) { } |
|
0 |
63 |
elsif (&blessed($opts->{'reader'}) and $opts->{'reader'}->isa('XML::LibXML::Reader')) { } |
41
|
0 |
0 |
unless $reader = 'XML::LibXML::Reader'->new('string', $opts->{'string'}, @common, 'URI', $URL) |
47
|
0 |
0 |
unless $reader = 'XML::LibXML::Reader'->new('IO', $opts->{'string'}, @common) |
54
|
0 |
63 |
if $Treex::PML::Debug |
56
|
0 |
63 |
if not $fh or $@ |
57
|
0 |
63 |
unless $reader = 'XML::LibXML::Reader'->new('FD', $fh, @common, 'URI', $URL) |
65
|
63 |
0 |
if $fh |
84
|
2744 |
0 |
$el_ns eq $opts->{'DefaultNs'} ? : |
85
|
2744 |
0 |
$has_default_ns ? : |
87
|
2744 |
0 |
$has_default_ns ? : |
|
0 |
2744 |
defined $prefix && length $prefix ? : |
94
|
2681 |
63 |
if $val{'-parent'} |
96
|
1907 |
837 |
if ($reader->moveToFirstAttribute == 1) |
107
|
2744 |
0 |
if (defined $class) |
109
|
1010 |
1734 |
if $obj->can('init') |
115
|
2744 |
5278 |
unless $reader->depth > $depth |
119
|
2681 |
2597 |
if ($nodeType == 1) { } |
|
553 |
2044 |
elsif ($nodeType == 3 or $nodeType == 4) { } |
|
224 |
1820 |
elsif ($nodeType == 8) { } |
|
0 |
1820 |
elsif ($nodeType == 7) { } |
|
1820 |
0 |
elsif ($nodeType == 15 or $nodeType == 14 or $nodeType == 13) { } |
144
|
0 |
0 |
$reader->hasValue ? : |
152
|
3458 |
0 |
if defined $chld |
153
|
2681 |
777 |
if $redo |
155
|
0 |
2744 |
if ($status == -1) |
161
|
553 |
2191 |
if (my $cont = $opts->{'TextOnly'}{$el_ns_name}) { } |
164
|
0 |
553 |
if ($c->{'-xml_name'} ne '#text') { } |
175
|
1680 |
1225 |
unless (ref $val{$name}) |
176
|
0 |
1680 |
if (exists $val{$name}) |
182
|
551 |
2354 |
if (my $cont = $opts->{'Stringify'}{$name}) { } |
184
|
0 |
551 |
unless defined $value |
188
|
1086 |
1819 |
if ($opts->{'Solitary'}{$name}) { } |
|
1099 |
720 |
elsif (my $key = $opts->{'KeyAttr'}{$name}) { } |
189
|
0 |
1086 |
if (exists $val{$name}) |
204
|
141 |
2603 |
if (UNIVERSAL::can($obj, 'post_process')) |