| line |
true |
false |
branch |
|
28
|
0 |
67 |
if ($opts->{'validate'}) |
|
30
|
0 |
0 |
if (defined $rng) { } |
|
38
|
0 |
67 |
if ($opts->{'string'}) { } |
|
|
0 |
67 |
elsif ($opts->{'fh'}) { } |
|
|
0 |
67 |
elsif (builtin::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 |
67 |
if $Treex::PML::Debug |
|
56
|
0 |
67 |
if not $fh or $@ |
|
57
|
0 |
67 |
unless $reader = "XML::LibXML::Reader"->new("FD", $fh, @common, "URI", $URL) |
|
65
|
67 |
0 |
if $fh |
|
84
|
2963 |
0 |
$el_ns eq $opts->{'DefaultNs'} ? : |
|
85
|
2963 |
0 |
$has_default_ns ? : |
|
87
|
2963 |
0 |
$has_default_ns ? : |
|
|
0 |
2963 |
defined $prefix && length $prefix ? : |
|
94
|
2896 |
67 |
if $val{'-parent'} |
|
96
|
2062 |
901 |
if ($reader->moveToFirstAttribute == 1) |
|
107
|
2963 |
0 |
if (defined $class) |
|
109
|
1081 |
1882 |
if $obj->can("init") |
|
115
|
2963 |
5746 |
unless $reader->depth > $depth |
|
119
|
2896 |
2850 |
if ($nodeType == 1) { } |
|
|
582 |
2268 |
elsif ($nodeType == 3 or $nodeType == 4) { } |
|
|
323 |
1945 |
elsif ($nodeType == 8) { } |
|
|
0 |
1945 |
elsif ($nodeType == 7) { } |
|
|
1945 |
0 |
elsif ($nodeType == 15 or $nodeType == 14 or $nodeType == 13) { } |
|
144
|
0 |
0 |
$reader->hasValue ? : |
|
152
|
3801 |
0 |
if defined $chld |
|
153
|
2896 |
905 |
if $redo |
|
155
|
0 |
2963 |
if ($status == -1) |
|
161
|
582 |
2381 |
if (my $cont = $opts->{'TextOnly'}{$el_ns_name}) { } |
|
164
|
0 |
582 |
if ($c->{'-xml_name'} ne '#text') { } |
|
175
|
1832 |
1387 |
unless (ref $val{$name}) |
|
176
|
0 |
1832 |
if (exists $val{$name}) |
|
182
|
580 |
2639 |
if (my $cont = $opts->{'Stringify'}{$name}) { } |
|
184
|
0 |
580 |
unless defined $value |
|
188
|
1165 |
2054 |
if ($opts->{'Solitary'}{$name}) { } |
|
|
1211 |
843 |
elsif (my $key = $opts->{'KeyAttr'}{$name}) { } |
|
189
|
0 |
1165 |
if (exists $val{$name}) |
|
204
|
151 |
2812 |
if (UNIVERSAL::can($obj, "post_process")) |