| line |
true |
false |
branch |
|
28
|
0 |
66 |
if ($opts->{'validate'}) |
|
30
|
0 |
0 |
if (defined $rng) { } |
|
38
|
0 |
66 |
if ($opts->{'string'}) { } |
|
|
0 |
66 |
elsif ($opts->{'fh'}) { } |
|
|
0 |
66 |
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 |
66 |
if $Treex::PML::Debug |
|
56
|
0 |
66 |
if not $fh or $@ |
|
57
|
0 |
66 |
unless $reader = "XML::LibXML::Reader"->new("FD", $fh, @common, "URI", $URL) |
|
65
|
66 |
0 |
if $fh |
|
84
|
2895 |
0 |
$el_ns eq $opts->{'DefaultNs'} ? : |
|
85
|
2895 |
0 |
$has_default_ns ? : |
|
87
|
2895 |
0 |
$has_default_ns ? : |
|
|
0 |
2895 |
defined $prefix && length $prefix ? : |
|
94
|
2829 |
66 |
if $val{'-parent'} |
|
96
|
2014 |
881 |
if ($reader->moveToFirstAttribute == 1) |
|
107
|
2895 |
0 |
if (defined $class) |
|
109
|
1059 |
1836 |
if $obj->can("init") |
|
115
|
2895 |
5598 |
unless $reader->depth > $depth |
|
119
|
2829 |
2769 |
if ($nodeType == 1) { } |
|
|
573 |
2196 |
elsif ($nodeType == 3 or $nodeType == 4) { } |
|
|
290 |
1906 |
elsif ($nodeType == 8) { } |
|
|
0 |
1906 |
elsif ($nodeType == 7) { } |
|
|
1906 |
0 |
elsif ($nodeType == 15 or $nodeType == 14 or $nodeType == 13) { } |
|
144
|
0 |
0 |
$reader->hasValue ? : |
|
152
|
3692 |
0 |
if defined $chld |
|
153
|
2829 |
863 |
if $redo |
|
155
|
0 |
2895 |
if ($status == -1) |
|
161
|
573 |
2322 |
if (my $cont = $opts->{'TextOnly'}{$el_ns_name}) { } |
|
164
|
0 |
573 |
if ($c->{'-xml_name'} ne '#text') { } |
|
175
|
1785 |
1334 |
unless (ref $val{$name}) |
|
176
|
0 |
1785 |
if (exists $val{$name}) |
|
182
|
571 |
2548 |
if (my $cont = $opts->{'Stringify'}{$name}) { } |
|
184
|
0 |
571 |
unless defined $value |
|
188
|
1141 |
1978 |
if ($opts->{'Solitary'}{$name}) { } |
|
|
1175 |
803 |
elsif (my $key = $opts->{'KeyAttr'}{$name}) { } |
|
189
|
0 |
1141 |
if (exists $val{$name}) |
|
204
|
148 |
2747 |
if (UNIVERSAL::can($obj, "post_process")) |