| line |
true |
false |
branch |
|
208
|
0 |
2581 |
if ( saved_error == NULL ) { |
|
214
|
0 |
2581 |
PUSHMARK(SP); |
|
216
|
0 |
2581 |
XPUSHs(sv_2mortal(libErr)); |
|
217
|
2581 |
0 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
|
162 |
2419 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
|
162 |
0 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
|
0 |
162 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
218
|
0 |
2419 |
XPUSHs(saved_error); |
|
222
|
2581 |
0 |
if ( saved_error != NULL ) { |
|
229
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
2581 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
2581 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
2581 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
2581 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
2581 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
237
|
2581 |
0 |
FREETMPS; |
|
279
|
0 |
0 |
if( NULL == saved_error ) { |
|
285
|
0 |
0 |
croak("%s", SvPV_nolen(sv)); |
|
302
|
0 |
0 |
if( NULL == saved_error ) { |
|
307
|
0 |
0 |
croak("%s", SvPV_nolen(sv)); |
|
324
|
0 |
0 |
if( NULL == saved_error ) { |
|
329
|
0 |
0 |
croak("LibXML_validity_warning_ctx internal error: context was null (%s)", SvPV_nolen(sv)); |
|
335
|
0 |
0 |
warn("validation error: %s", SvPV(saved_error, len)); |
|
343
|
399 |
0 |
if( saved_error!=NULL && SvOK(saved_error) ) { |
|
|
314 |
85 |
if( saved_error!=NULL && SvOK(saved_error) ) { |
|
|
314 |
0 |
if( saved_error!=NULL && SvOK(saved_error) ) { |
|
|
0 |
314 |
if( saved_error!=NULL && SvOK(saved_error) ) { |
|
344
|
85 |
0 |
if ( recover == 0 ) { |
|
363
|
1617 |
0 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
|
1459 |
158 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
|
1459 |
0 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
|
0 |
1459 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
364
|
7 |
151 |
if (!recover || recover==1) { |
|
|
3 |
4 |
if (!recover || recover==1) { |
|
370
|
0 |
154 |
PUSHMARK(SP); |
|
371
|
0 |
154 |
EXTEND(SP, 1); |
|
374
|
3 |
151 |
if (recover==1) { |
|
382
|
0 |
3 |
FREETMPS; |
|
477
|
69 |
833 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
69 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
69 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
68 |
1 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
68 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
68 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
1 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
1 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
1 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
1 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
1 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
0 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
|
1 |
0 |
return ( item != NULL && SvTRUE(*item) ) ? SvIV(*item) : 0; |
|
485
|
30 |
383 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
30 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
30 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
30 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
30 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
30 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
514
|
0 |
35 |
PUSHMARK(SP); |
|
515
|
0 |
35 |
EXTEND(SP, 3); |
|
521
|
11 |
24 |
if (sv_isobject(ioref)) { |
|
530
|
0 |
35 |
if (cnt != 1) { |
|
534
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
35 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
35 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
35 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
34 |
1 |
if (SvTRUE(ERRSV)) { |
|
|
34 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
34 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
34 |
if (SvTRUE(ERRSV)) { |
|
541
|
0 |
34 |
if (!SvOK(read_results)) { |
|
|
0 |
0 |
if (!SvOK(read_results)) { |
|
|
0 |
0 |
if (!SvOK(read_results)) { |
|
545
|
34 |
0 |
read_results_iv = SvIV(read_results); |
|
547
|
34 |
0 |
chars = SvPV(tbuff, read_length); |
|
555
|
33 |
1 |
if (read_results_iv != read_length || read_length > len) { |
|
|
0 |
33 |
if (read_results_iv != read_length || read_length > len) { |
|
562
|
33 |
0 |
FREETMPS; |
|
592
|
0 |
116 |
PUSHMARK(SP); |
|
593
|
0 |
116 |
EXTEND(SP, 1); |
|
602
|
0 |
116 |
if (count != 1) { |
|
606
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
116 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
116 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
116 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
116 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
116 |
if (SvTRUE(ERRSV)) { |
|
613
|
116 |
0 |
if (SvTRUE(res)) { |
|
|
0 |
116 |
if (SvTRUE(res)) { |
|
|
0 |
116 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
0 |
116 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
116 |
0 |
if (SvTRUE(res)) { |
|
|
116 |
0 |
if (SvTRUE(res)) { |
|
|
91 |
25 |
if (SvTRUE(res)) { |
|
|
0 |
91 |
if (SvTRUE(res)) { |
|
|
0 |
0 |
if (SvTRUE(res)) { |
|
|
25 |
91 |
if (SvTRUE(res)) { |
|
618
|
116 |
0 |
FREETMPS; |
|
636
|
0 |
25 |
PUSHMARK(SP); |
|
637
|
0 |
25 |
EXTEND(SP, 1); |
|
646
|
0 |
25 |
if (count != 1) { |
|
650
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
660
|
25 |
0 |
FREETMPS; |
|
686
|
0 |
74 |
PUSHMARK(SP); |
|
687
|
0 |
74 |
EXTEND(SP, 2); |
|
697
|
0 |
74 |
if (count != 1) { |
|
701
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
74 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
74 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
74 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
74 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
74 |
if (SvTRUE(ERRSV)) { |
|
713
|
0 |
74 |
output = SvOK(output_sv) ? SvPV_nolen(output_sv) : NULL; |
|
|
0 |
0 |
output = SvOK(output_sv) ? SvPV_nolen(output_sv) : NULL; |
|
|
0 |
0 |
output = SvOK(output_sv) ? SvPV_nolen(output_sv) : NULL; |
|
|
74 |
0 |
output = SvOK(output_sv) ? SvPV_nolen(output_sv) : NULL; |
|
715
|
74 |
0 |
if (output != NULL) { |
|
717
|
49 |
25 |
if (res_len) { |
|
726
|
74 |
0 |
FREETMPS; |
|
746
|
0 |
25 |
PUSHMARK(SP); |
|
747
|
0 |
25 |
EXTEND(SP, 1); |
|
756
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
25 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
25 |
if (SvTRUE(ERRSV)) { |
|
760
|
0 |
25 |
FREETMPS; |
|
768
|
1 |
0 |
if ( buffer != NULL && len > 0) { |
|
|
1 |
0 |
if ( buffer != NULL && len > 0) { |
|
779
|
0 |
1 |
PUSHMARK(SP); |
|
780
|
0 |
1 |
EXTEND(SP, 3); |
|
788
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
1 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
1 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
1 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
1 |
if (SvTRUE(ERRSV)) { |
|
792
|
1 |
0 |
FREETMPS; |
|
817
|
0 |
6 |
if (ctxt->_private == NULL && EXTERNAL_ENTITY_LOADER_FUNC == NULL) |
|
|
0 |
0 |
if (ctxt->_private == NULL && EXTERNAL_ENTITY_LOADER_FUNC == NULL) |
|
822
|
0 |
6 |
if (URL == NULL) { |
|
825
|
3 |
3 |
if (ID == NULL) { |
|
830
|
2 |
4 |
if(EXTERNAL_ENTITY_LOADER_FUNC != NULL) |
|
844
|
6 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
6 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
6 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
6 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
6 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
6 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
0 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
|
6 |
0 |
if (func != NULL && SvTRUE(*func)) { |
|
851
|
0 |
6 |
PUSHMARK(SP) ; |
|
852
|
0 |
6 |
XPUSHs(sv_2mortal(newSVpv((char*)URL, 0))); |
|
853
|
0 |
6 |
XPUSHs(sv_2mortal(newSVpv((char*)ID, 0))); |
|
860
|
0 |
6 |
if (count == 0) { |
|
864
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
6 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
6 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
6 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
6 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
6 |
if (SvTRUE(ERRSV)) { |
|
871
|
6 |
0 |
results_pv = SvPV(results, results_len); |
|
879
|
6 |
0 |
FREETMPS; |
|
885
|
0 |
0 |
if (URL == NULL) { |
|
917
|
1005 |
0 |
if ( self != NULL ) { |
|
922
|
1005 |
0 |
if (item != NULL && SvOK(*item)) parserOptions = sv_2iv(*item); |
|
|
0 |
1005 |
if (item != NULL && SvOK(*item)) parserOptions = sv_2iv(*item); |
|
|
0 |
0 |
if (item != NULL && SvOK(*item)) parserOptions = sv_2iv(*item); |
|
|
0 |
0 |
if (item != NULL && SvOK(*item)) parserOptions = sv_2iv(*item); |
|
928
|
877 |
128 |
if ((parserOptions & XML_PARSE_DTDLOAD) == 0) { |
|
931
|
540 |
465 |
if (ctxt) xmlCtxtUseOptions(ctxt, parserOptions ); /* Note: sets ctxt->linenumbers = 1 */ |
|
941
|
61 |
944 |
if (parserOptions & XML_PARSE_NOBLANKS) { |
|
949
|
75 |
930 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
75 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
75 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
72 |
3 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
72 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
72 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
3 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
3 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
3 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
1 |
2 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
1 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
2 |
1 |
if ( item != NULL && SvTRUE(*item) ) { |
|
|
0 |
0 |
if ( item != NULL && SvTRUE(*item) ) { |
|
950
|
2 |
0 |
if (ctxt) ctxt->linenumbers = 1; |
|
953
|
538 |
465 |
if (ctxt) ctxt->linenumbers = 0; |
|
956
|
1004 |
1 |
if(EXTERNAL_ENTITY_LOADER_FUNC == NULL) |
|
959
|
74 |
930 |
if (item != NULL && SvTRUE(*item)) { |
|
|
74 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
74 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
71 |
3 |
if (item != NULL && SvTRUE(*item)) { |
|
|
71 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
71 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
3 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
3 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
0 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
|
3 |
0 |
if (item != NULL && SvTRUE(*item)) { |
|
965
|
1 |
1000 |
if (parserOptions & XML_PARSE_NONET) |
|
983
|
1002 |
1 |
if (EXTERNAL_ENTITY_LOADER_FUNC == NULL && LibXML_old_ext_ent_loader != NULL) |
|
|
4 |
998 |
if (EXTERNAL_ENTITY_LOADER_FUNC == NULL && LibXML_old_ext_ent_loader != NULL) |
|
996
|
210 |
0 |
if ( cur == NULL || *cur == 0 ) { |
|
|
0 |
210 |
if ( cur == NULL || *cur == 0 ) { |
|
1003
|
210 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
184 |
26 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
156 |
28 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
156 |
26 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
1 |
155 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
1 |
26 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
1 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
26 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
26 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
26 |
184 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
26 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
0 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
26 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
|
26 |
0 |
if ( !( IS_LETTER( tc ) || (tc == '_') || (tc == ':')) ) { |
|
1011
|
682 |
184 |
while (*cur != 0 ) { |
|
1014
|
682 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
615 |
67 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
603 |
12 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
603 |
67 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
1 |
602 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
1 |
67 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
1 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
1 |
67 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
1 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
67 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
67 |
615 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
67 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
67 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
66 |
1 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
55 |
11 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
56 |
11 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
56 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
55 |
1 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
|
0 |
0 |
if (!(IS_LETTER(tc) || IS_DIGIT(tc) || (tc == '_') || |
|
1015
|
0 |
55 |
(tc == '-') || (tc == ':') || (tc == '.') || |
|
|
0 |
0 |
(tc == '-') || (tc == ':') || (tc == '.') || |
|
1016
|
0 |
0 |
IS_COMBINING(tc) || IS_EXTENDER(tc)) ) { |
|
1035
|
33 |
2 |
if (node->type != XML_ATTRIBUTE_NODE |
|
1036
|
28 |
5 |
&& node->type != XML_DTD_NODE) { |
|
1046
|
0 |
12 |
if (old_dtd == dtd) { |
|
1050
|
12 |
0 |
if (old_dtd != NULL) { |
|
1053
|
6 |
6 |
if (PmmPROXYNODE(old_dtd) == NULL) { |
|
1077
|
20 |
6025 |
if (XPathContextDATA(ctxt)->pool == NULL) { |
|
1078
|
0 |
20 |
if (pnode == NULL) { |
|
1087
|
0 |
6045 |
strkey = SvPV(key, len); |
|
1088
|
6045 |
0 |
if (pnode != NULL && !hv_exists(XPathContextDATA(ctxt)->pool,strkey,len)) { |
|
|
6043 |
2 |
if (pnode != NULL && !hv_exists(XPathContextDATA(ctxt)->pool,strkey,len)) { |
|
1095
|
0 |
6045 |
if (value == NULL) { |
|
1108
|
0 |
52 |
if (!SvOK(perl_result)) { |
|
|
0 |
0 |
if (!SvOK(perl_result)) { |
|
|
0 |
0 |
if (!SvOK(perl_result)) { |
|
1111
|
40 |
12 |
if (SvROK(perl_result) && |
|
|
27 |
13 |
if (SvROK(perl_result) && |
|
1123
|
9056 |
27 |
for( i = 0; i <= length ; i++ ) { |
|
1125
|
9056 |
0 |
if (pnode != NULL && sv_isobject(*pnode) && |
|
1129
|
6043 |
3013 |
if(ctxt) { |
|
1138
|
13 |
12 |
} else if (sv_isobject(perl_result) && |
|
|
13 |
0 |
} else if (sv_isobject(perl_result) && |
|
1141
|
11 |
2 |
if (sv_derived_from(perl_result, "XML::LibXML::Node")) { |
|
1148
|
2 |
9 |
if(ctxt) { |
|
1155
|
0 |
2 |
else if (sv_isa(perl_result, "XML::LibXML::Boolean")) { |
|
1157
|
0 |
0 |
xmlXPathNewBoolean(SvIV(SvRV(perl_result))); |
|
1159
|
1 |
1 |
else if (sv_isa(perl_result, "XML::LibXML::Literal")) { |
|
1161
|
1 |
0 |
xmlXPathNewCString(SvPV_nolen(SvRV(perl_result))); |
|
1163
|
1 |
0 |
else if (sv_isa(perl_result, "XML::LibXML::Number")) { |
|
1165
|
0 |
1 |
xmlXPathNewFloat(SvNV(SvRV(perl_result))); |
|
1167
|
9 |
3 |
} else if (SvNOK(perl_result) || SvIOK(perl_result)) { |
|
|
0 |
9 |
} else if (SvNOK(perl_result) || SvIOK(perl_result)) { |
|
1168
|
3 |
0 |
return (xmlXPathObjectPtr)xmlXPathNewFloat(SvNV(perl_result)); |
|
1171
|
9 |
0 |
xmlXPathNewCString(SvPV_nolen(perl_result)); |
|
1183
|
53 |
0 |
if (copy) { |
|
1191
|
53 |
0 |
if (XPathContextDATA(copy)) { |
|
1206
|
53 |
0 |
if (XPathContextDATA(ctxt)) { |
|
1208
|
0 |
53 |
if (XPathContextDATA(ctxt)->pool != NULL && |
|
|
0 |
0 |
if (XPathContextDATA(ctxt)->pool != NULL && |
|
1209
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->pool)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->pool)) { |
|
1213
|
0 |
53 |
if (ctxt->namespaces) { |
|
1219
|
53 |
0 |
if (copy) { |
|
1221
|
53 |
0 |
if (XPathContextDATA(copy)) { |
|
1251
|
0 |
21 |
if ( ctxt == NULL ) |
|
1254
|
0 |
21 |
if ( data == NULL ) |
|
1256
|
21 |
0 |
if ( data->varLookup == NULL || !SvROK(data->varLookup) || |
|
|
21 |
0 |
if ( data->varLookup == NULL || !SvROK(data->varLookup) || |
|
|
0 |
21 |
if ( data->varLookup == NULL || !SvROK(data->varLookup) || |
|
1262
|
0 |
21 |
PUSHMARK(SP); |
|
1264
|
0 |
21 |
XPUSHs( (data->varData != NULL) ? data->varData : &PL_sv_undef ); |
|
|
20 |
1 |
XPUSHs( (data->varData != NULL) ? data->varData : &PL_sv_undef ); |
|
1265
|
0 |
21 |
XPUSHs(sv_2mortal(C2Sv(name,NULL))); |
|
1266
|
0 |
21 |
XPUSHs(sv_2mortal(C2Sv(ns_uri,NULL))); |
|
1278
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
21 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
21 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
21 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
21 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
21 |
if (SvTRUE(ERRSV)) { |
|
1282
|
0 |
21 |
if (count != 1) croak("XPathContext: variable lookup function returned none or more than one argument!"); |
|
1287
|
21 |
0 |
FREETMPS; |
|
1317
|
32 |
0 |
if (ctxt->context->funcLookupData == NULL || !SvROK(data) || |
|
|
32 |
0 |
if (ctxt->context->funcLookupData == NULL || !SvROK(data) || |
|
|
0 |
32 |
if (ctxt->context->funcLookupData == NULL || !SvROK(data) || |
|
1326
|
8 |
24 |
if (uri && *uri) { |
|
|
8 |
0 |
if (uri && *uri) { |
|
1332
|
32 |
0 |
strkey = SvPV(key, len); |
|
1335
|
32 |
0 |
if ( perl_function == NULL || !SvOK(*perl_function) || |
|
|
0 |
32 |
if ( perl_function == NULL || !SvOK(*perl_function) || |
|
|
0 |
0 |
if ( perl_function == NULL || !SvOK(*perl_function) || |
|
|
0 |
0 |
if ( perl_function == NULL || !SvOK(*perl_function) || |
|
|
31 |
1 |
if ( perl_function == NULL || !SvOK(*perl_function) || |
|
1336
|
31 |
0 |
!(SvPOK(*perl_function) || |
|
1337
|
0 |
31 |
(SvROK(*perl_function) && |
|
1345
|
0 |
32 |
PUSHMARK(SP); |
|
1347
|
0 |
32 |
XPUSHs(*perl_function); |
|
1350
|
23 |
32 |
for (i = 0; i < nargs; i++) { |
|
1356
|
11 |
0 |
if ( nodelist ) { |
|
1357
|
0 |
11 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::NodeList", 0))); |
|
1358
|
0 |
11 |
XPUSHs(sv_2mortal(newSViv(nodelist->nodeNr))); |
|
1359
|
10 |
1 |
if ( nodelist->nodeNr > 0 ) { |
|
1366
|
3023 |
10 |
for( j = 0 ; j < l; j++){ |
|
1368
|
3023 |
0 |
if( tnode != NULL && tnode->doc != NULL) { |
|
|
3023 |
0 |
if( tnode != NULL && tnode->doc != NULL) { |
|
1369
|
3023 |
0 |
owner = PmmOWNERPO(PmmNewNode(INT2PTR(xmlNodePtr,tnode->doc))); |
|
|
0 |
3023 |
owner = PmmOWNERPO(PmmNewNode(INT2PTR(xmlNodePtr,tnode->doc))); |
|
1373
|
0 |
3023 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
1384
|
0 |
3023 |
XPUSHs( sv_2mortal(element) ); |
|
1390
|
0 |
0 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::NodeList", 0))); |
|
1391
|
0 |
0 |
XPUSHs(sv_2mortal(newSViv(0))); |
|
1394
|
0 |
11 |
if (obj->boolval) obj->boolval=0; |
|
1397
|
0 |
0 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Boolean", 0))); |
|
1398
|
0 |
0 |
XPUSHs(sv_2mortal(newSViv(obj->boolval))); |
|
1401
|
0 |
4 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Number", 0))); |
|
1402
|
0 |
4 |
XPUSHs(sv_2mortal(newSVnv(obj->floatval))); |
|
1405
|
0 |
8 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Literal", 0))); |
|
1406
|
0 |
8 |
XPUSHs(sv_2mortal(C2Sv(obj->stringval, 0))); |
|
1410
|
0 |
0 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Literal", 0))); |
|
1411
|
0 |
0 |
XPUSHs(sv_2mortal(C2Sv(xmlXPathCastToString(obj), 0))); |
|
1428
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
32 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
32 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
32 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
31 |
1 |
if (SvTRUE(ERRSV)) { |
|
|
31 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
31 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
0 |
0 |
if (SvTRUE(ERRSV)) { |
|
|
1 |
31 |
if (SvTRUE(ERRSV)) { |
|
1433
|
0 |
31 |
if (count != 1) croak("XPathContext: perl-dispatcher in pm file returned none or more than one argument!"); |
|
1439
|
31 |
0 |
FREETMPS; |
|
1447
|
28 |
148 |
if (ctxt->namespaces != NULL) { |
|
1451
|
168 |
8 |
if (node != NULL) { |
|
1452
|
132 |
36 |
if (node->type == XML_DOCUMENT_NODE) { |
|
1459
|
45 |
123 |
if (ctxt->namespaces != NULL) { |
|
1464
|
128 |
45 |
while (ctxt->namespaces[cur] != NULL) { |
|
1471
|
10 |
83 |
if (cur != ctxt->nsNr) { |
|
1488
|
154 |
8 |
if (node != NULL) { |
|
1505
|
0 |
6 |
if (!hash) { |
|
1519
|
0 |
20 |
if (!hash) { |
|
1524
|
2 |
18 |
if ( hv_exists(hash, key, strlen(key)) ) { |
|
1707
|
1 |
322 |
if (SvPOK(dir)) { |
|
1708
|
1 |
0 |
directory = SvPV(dir, len); |
|
1709
|
0 |
1 |
if (len <= 0) { |
|
1716
|
3 |
320 |
if (SvROK(string) && !SvOBJECT(SvRV(string))) { |
|
|
2 |
1 |
if (SvROK(string) && !SvOBJECT(SvRV(string))) { |
|
1719
|
322 |
1 |
ptr = SvPV_const(string, len); |
|
1720
|
0 |
323 |
if (len <= 0) { |
|
1729
|
0 |
323 |
if (ctxt == NULL) { |
|
1739
|
1 |
322 |
if ( directory != NULL ) { |
|
1745
|
323 |
0 |
if ( ctxt->input != NULL ) { |
|
1746
|
1 |
322 |
if (directory != NULL) { |
|
1766
|
323 |
0 |
if ( real_doc != NULL ) { |
|
1767
|
323 |
0 |
if (real_doc->URL != NULL) { /* free "" assigned above */ |
|
1772
|
322 |
1 |
if ( directory == NULL ) { |
|
1774
|
322 |
0 |
real_doc->URL = xmlStrdup((const xmlChar*)SvPV_nolen(newURI)); |
|
1778
|
245 |
78 |
if ( ! LibXML_will_die_ctx(saved_error, recover) && |
|
|
244 |
1 |
if ( ! LibXML_will_die_ctx(saved_error, recover) && |
|
1779
|
244 |
0 |
(recover || ( well_formed && |
|
|
0 |
244 |
(recover || ( well_formed && |
|
1781
|
0 |
0 |
|| ( valid || ( real_doc->intSubset == NULL |
|
|
0 |
0 |
|| ( valid || ( real_doc->intSubset == NULL |
|
1782
|
0 |
0 |
&& real_doc->extSubset == NULL )))))) { |
|
1807
|
37 |
0 |
ptr = SvPV(string, len); |
|
1808
|
0 |
37 |
if (len <= 0) { |
|
1818
|
0 |
37 |
if (ctxt == NULL) { |
|
1820
|
0 |
0 |
REPORT_ERROR(recover ? recover : 1); |
|
1860
|
0 |
9 |
if (SvPOK(dir)) { |
|
1861
|
0 |
0 |
directory = SvPV(dir, len); |
|
1862
|
0 |
0 |
if (len <= 0) { |
|
1876
|
0 |
8 |
if (read_length <= 0) { |
|
1882
|
0 |
8 |
if (ctxt == NULL) { |
|
1894
|
0 |
8 |
if ( directory != NULL ) { |
|
1901
|
7 |
6 |
while ((read_length = LibXML_read_perl(fh, buffer, 1024))) { |
|
1903
|
1 |
6 |
if ( ret != 0 ) { |
|
1920
|
7 |
0 |
if ( real_doc != NULL ) { |
|
1922
|
7 |
0 |
if ( directory == NULL ) { |
|
1924
|
7 |
0 |
real_doc->URL = xmlStrdup((const xmlChar*)SvPV_nolen(newURI)); |
|
1929
|
6 |
1 |
if ( ! LibXML_will_die_ctx(saved_error, recover) && |
|
|
6 |
0 |
if ( ! LibXML_will_die_ctx(saved_error, recover) && |
|
1930
|
6 |
0 |
(recover || ( well_formed && |
|
|
0 |
6 |
(recover || ( well_formed && |
|
1932
|
0 |
0 |
|| ( valid || ( real_doc->intSubset == NULL |
|
|
0 |
0 |
|| ( valid || ( real_doc->intSubset == NULL |
|
1933
|
0 |
0 |
&& real_doc->extSubset == NULL )))))) { |
|
1959
|
0 |
0 |
if (SvPOK(dir)) { |
|
1960
|
0 |
0 |
directory = SvPV(dir, len); |
|
1961
|
0 |
0 |
if (len <= 0) { |
|
1974
|
0 |
0 |
if (read_length <= 0) { |
|
1981
|
0 |
0 |
if (ctxt == NULL) { |
|
1983
|
0 |
0 |
REPORT_ERROR(recover ? recover : 1); |
|
1990
|
0 |
0 |
if ( directory != NULL ) { |
|
1998
|
0 |
0 |
while ((read_length = LibXML_read_perl(fh, buffer, 1024))) { |
|
2000
|
0 |
0 |
if ( ret != 0 ) { |
|
2034
|
67 |
0 |
filename = SvPV(filename_sv, len); |
|
2035
|
0 |
67 |
if (len <= 0) { |
|
2045
|
1 |
66 |
if (ctxt == NULL) { |
|
2069
|
66 |
0 |
if ( real_doc != NULL ) { |
|
2070
|
60 |
6 |
if ( ! LibXML_will_die_ctx(saved_error, recover) && |
|
|
60 |
0 |
if ( ! LibXML_will_die_ctx(saved_error, recover) && |
|
2071
|
60 |
0 |
(recover || ( well_formed && |
|
|
0 |
60 |
(recover || ( well_formed && |
|
2073
|
0 |
0 |
|| ( valid || ( real_doc->intSubset == NULL |
|
|
0 |
0 |
|| ( valid || ( real_doc->intSubset == NULL |
|
2074
|
0 |
0 |
&& real_doc->extSubset == NULL )))))) { |
|
2099
|
1 |
0 |
filename = SvPV(filename_sv, len); |
|
2100
|
0 |
1 |
if (len <= 0) { |
|
2109
|
0 |
1 |
if (ctxt == NULL) { |
|
2111
|
0 |
0 |
REPORT_ERROR(recover ? recover : 1); |
|
2156
|
1 |
17 |
if (SvROK(string) && !SvOBJECT(SvRV(string))) { |
|
|
1 |
0 |
if (SvROK(string) && !SvOBJECT(SvRV(string))) { |
|
2159
|
18 |
0 |
ptr = SvPV(string, len); |
|
2160
|
0 |
18 |
if (len <= 0) { |
|
2164
|
16 |
2 |
if (SvOK(svURL)) |
|
|
16 |
0 |
if (SvOK(svURL)) |
|
|
0 |
16 |
if (SvOK(svURL)) |
|
2165
|
2 |
0 |
URL = SvPV_nolen( svURL ); |
|
2166
|
12 |
6 |
if (SvOK(svEncoding)) |
|
|
12 |
0 |
if (SvOK(svEncoding)) |
|
|
0 |
12 |
if (SvOK(svEncoding)) |
|
2167
|
6 |
0 |
encoding = SvPV_nolen( svEncoding ); |
|
2172
|
12 |
6 |
if (encoding == NULL && SvUTF8( string )) { |
|
|
4 |
8 |
if (encoding == NULL && SvUTF8( string )) { |
|
2175
|
14 |
4 |
if (options & HTML_PARSE_RECOVER) { |
|
2176
|
6 |
8 |
recover = ((options & HTML_PARSE_NOERROR) ? 2 : 1); |
|
2189
|
18 |
0 |
if ( real_doc ) { |
|
2190
|
16 |
2 |
if (URL==NULL) { |
|
2192
|
16 |
0 |
real_doc->URL = xmlStrdup((const xmlChar*)SvPV_nolen(newURI)); |
|
2223
|
6 |
0 |
filename = SvPV(filename_sv, len); |
|
2224
|
0 |
6 |
if (len <= 0) { |
|
2228
|
5 |
1 |
if (SvOK(svURL)) |
|
|
5 |
0 |
if (SvOK(svURL)) |
|
|
0 |
5 |
if (SvOK(svURL)) |
|
2229
|
1 |
0 |
URL = SvPV_nolen( svURL ); |
|
2230
|
4 |
2 |
if (SvOK(svEncoding)) |
|
|
4 |
0 |
if (SvOK(svEncoding)) |
|
|
0 |
4 |
if (SvOK(svEncoding)) |
|
2231
|
2 |
0 |
encoding = SvPV_nolen( svEncoding ); |
|
2236
|
3 |
3 |
if (options & HTML_PARSE_RECOVER) { |
|
2237
|
0 |
3 |
recover = ((options & HTML_PARSE_NOERROR) ? 2 : 1); |
|
2246
|
6 |
0 |
if ( real_doc != NULL ) { |
|
2250
|
1 |
5 |
if (URL) { |
|
2251
|
1 |
0 |
if (real_doc->URL) xmlFree((xmlChar*) real_doc->URL); |
|
2282
|
3 |
1 |
if (SvOK(svURL)) |
|
|
3 |
0 |
if (SvOK(svURL)) |
|
|
0 |
3 |
if (SvOK(svURL)) |
|
2283
|
1 |
0 |
URL = SvPV_nolen( svURL ); |
|
2285
|
2 |
2 |
if (SvOK(svEncoding)) |
|
|
2 |
0 |
if (SvOK(svEncoding)) |
|
|
0 |
2 |
if (SvOK(svEncoding)) |
|
2286
|
2 |
0 |
encoding = SvPV_nolen( svEncoding ); |
|
2295
|
3 |
1 |
if (options & HTML_PARSE_RECOVER) { |
|
2296
|
0 |
3 |
recover = ((options & HTML_PARSE_NOERROR) ? 2 : 1); |
|
2342
|
4 |
0 |
if ( real_doc != NULL ) { |
|
2343
|
1 |
3 |
if (real_doc->URL) xmlFree((xmlChar*) real_doc->URL); |
|
2344
|
1 |
3 |
if (URL) { |
|
2348
|
3 |
0 |
real_doc->URL = xmlStrdup((const xmlChar*)SvPV_nolen(newURI)); |
|
2374
|
0 |
43 |
if (SvPOK(enc)) { |
|
2375
|
0 |
0 |
encoding = SvPV(enc, len); |
|
2376
|
0 |
0 |
if (len <= 0) { |
|
2387
|
43 |
0 |
if ( chunk != NULL ) { |
|
2392
|
35 |
8 |
if ( rv != NULL ) { |
|
2406
|
25 |
35 |
while ( rv_end->next != NULL ) { |
|
2425
|
0 |
35 |
if (rv == NULL) { |
|
2448
|
0 |
29 |
if (SvPOK(enc)) { |
|
2449
|
0 |
0 |
encoding = SvPV(enc, len); |
|
2450
|
0 |
0 |
if (len <= 0) { |
|
2454
|
29 |
0 |
ptr = SvPV(svchunk, len); |
|
2455
|
0 |
29 |
if (len <= 0) { |
|
2463
|
29 |
0 |
if ( chunk != NULL ) { |
|
2465
|
0 |
29 |
if (ctxt == NULL) { |
|
2467
|
0 |
0 |
REPORT_ERROR(recover ? recover : 1); |
|
2496
|
0 |
29 |
if (retCode == -1) { |
|
2512
|
2 |
20 |
if (real_doc == NULL) { |
|
2528
|
0 |
18 |
if ( RETVAL < 0 ) { |
|
2531
|
1 |
17 |
} else if ( RETVAL == 0 ) { |
|
2554
|
36 |
40 |
if ( with_sax == 1 ) { |
|
2580
|
0 |
299 |
if ( ctxt == NULL ) { |
|
2584
|
0 |
299 |
if ( data == &PL_sv_undef ) { |
|
2587
|
299 |
0 |
chunk = SvPV( data, len ); |
|
2588
|
0 |
299 |
if ( len <= 0 ) { |
|
2604
|
8 |
290 |
if ( ctxt->wellFormed == 0 ) { |
|
2625
|
0 |
39 |
if ( ctxt == NULL ) { |
|
2641
|
39 |
0 |
PmmNODE( SvPROXYNODE( pctxt ) ) = NULL; |
|
2643
|
39 |
0 |
if ( real_doc != NULL ) { |
|
2644
|
38 |
1 |
if ( restore || well_formed ) { |
|
|
38 |
0 |
if ( restore || well_formed ) { |
|
2656
|
0 |
39 |
if ( real_doc == NULL ){ |
|
2673
|
0 |
36 |
if ( ctxt == NULL ) { |
|
2687
|
36 |
0 |
PmmNODE( SvPROXYNODE( pctxt ) ) = NULL; |
|
2771
|
1 |
0 |
if ( fn == NULL || xmlStrlen( (xmlChar *)fn ) == 0 ) { |
|
|
0 |
1 |
if ( fn == NULL || xmlStrlen( (xmlChar *)fn ) == 0 ) { |
|
2790
|
0 |
0 |
xmlCatalogPtr catal = INT2PTR(xmlCatalogPtr,SvIV(SvRV(catalog))); |
|
2793
|
0 |
0 |
if ( catal == NULL ) { |
|
2808
|
1 |
0 |
if(EXTERNAL_ENTITY_LOADER_FUNC == NULL) |
|
2813
|
1 |
0 |
if (LibXML_old_ext_ent_loader == NULL ) |
|
2846
|
76 |
0 |
PmmContextREFCNT_dec( SvPROXYNODE( self ) ); |
|
2865
|
29 |
0 |
if( internalFlag ) { |
|
2866
|
29 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
29 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
29 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
29 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
29 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
29 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
29 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
29 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
29 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
2870
|
29 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
29 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
29 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
29 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
29 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
29 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
29 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
28 |
1 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
28 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
1 |
28 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
2872
|
1 |
0 |
if ( intSubset ) |
|
2878
|
28 |
1 |
if ( format <= 0 ) { |
|
2890
|
1 |
28 |
if ( intSubset != NULL ) { |
|
2891
|
0 |
1 |
if (self->children == NULL) { |
|
2903
|
0 |
29 |
if (result == NULL) { |
|
2931
|
1 |
0 |
if( internalFlag ) { |
|
2932
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
2936
|
1 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
1 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
1 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
1 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
1 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
1 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
1 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
1 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
1 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
0 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
|
0 |
1 |
if ( internalFlag && SvTRUE(internalFlag) ) { |
|
2938
|
0 |
0 |
if ( intSubset ) |
|
2944
|
0 |
1 |
if ( encoding != NULL ) { |
|
2945
|
0 |
0 |
if ( xmlParseCharEncoding((const char*)encoding) != XML_CHAR_ENCODING_UTF8) { |
|
2959
|
1 |
0 |
if ( format <= 0 ) { |
|
2974
|
0 |
1 |
if ( intSubset != NULL ) { |
|
2975
|
0 |
0 |
if (self->children == NULL) { |
|
3001
|
1 |
0 |
if( internalFlag ) { |
|
3002
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
3007
|
1 |
0 |
if ( format <= 0 ) { |
|
3024
|
1 |
0 |
if ( RETVAL > 0 ) |
|
3048
|
0 |
4 |
if (result == NULL) { |
|
3075
|
2 |
0 |
if (new_URI) { |
|
3091
|
6 |
115 |
if (encoding && *encoding != 0) { |
|
|
6 |
0 |
if (encoding && *encoding != 0) { |
|
3111
|
0 |
1 |
if ( name == NULL ) { |
|
3122
|
1 |
0 |
if ( dtd ) { |
|
3144
|
0 |
1 |
if ( name == NULL ) { |
|
3156
|
1 |
0 |
if ( dtd ) { |
|
3178
|
0 |
1 |
if ( name == NULL ) { |
|
3191
|
1 |
0 |
if ( dtd ) { |
|
3218
|
5 |
64 |
if ( !LibXML_test_node_name( elname ) ) { |
|
3225
|
64 |
0 |
if ( newNode != NULL ) { |
|
3248
|
63 |
0 |
if ( !elname || xmlStrlen(elname) <= 0 ) { |
|
|
0 |
63 |
if ( !elname || xmlStrlen(elname) <= 0 ) { |
|
3255
|
63 |
0 |
if ( newNode != NULL ) { |
|
3282
|
0 |
19 |
if ( !LibXML_test_node_name( ename ) ) { |
|
3289
|
19 |
0 |
if ( eURI != NULL && xmlStrlen(eURI)!=0 ){ |
|
|
19 |
0 |
if ( eURI != NULL && xmlStrlen(eURI)!=0 ){ |
|
3291
|
11 |
8 |
if ( localname == NULL ) { |
|
3313
|
8 |
11 |
if ( prefix != NULL ) { |
|
3316
|
19 |
0 |
if ( eURI != NULL ) { |
|
3338
|
0 |
8 |
if ( !LibXML_test_node_name( ename ) ) { |
|
3345
|
8 |
0 |
if ( eURI != NULL && xmlStrlen(eURI)!=0 ){ |
|
|
8 |
0 |
if ( eURI != NULL && xmlStrlen(eURI)!=0 ){ |
|
3347
|
1 |
7 |
if ( localname == NULL ) { |
|
3354
|
8 |
0 |
if ( ns == NULL ) { |
|
3359
|
0 |
8 |
if ( ns == NULL ) { |
|
3363
|
0 |
0 |
if ( prefix != NULL ) { |
|
3385
|
7 |
1 |
if ( prefix != NULL ) { |
|
3388
|
8 |
0 |
if ( eURI != NULL ) { |
|
3405
|
0 |
17 |
if ( elname != NULL || xmlStrlen(elname) > 0 ) { |
|
|
0 |
0 |
if ( elname != NULL || xmlStrlen(elname) > 0 ) { |
|
3408
|
17 |
0 |
if ( newNode != NULL ) { |
|
3435
|
0 |
6 |
if ( elname != NULL || xmlStrlen(elname) > 0 ) { |
|
|
0 |
0 |
if ( elname != NULL || xmlStrlen(elname) > 0 ) { |
|
3438
|
6 |
0 |
if ( newNode != NULL ) { |
|
3466
|
0 |
6 |
if ( elname != NULL || xmlStrlen(elname) > 0 ) { |
|
|
0 |
0 |
if ( elname != NULL || xmlStrlen(elname) > 0 ) { |
|
3469
|
6 |
0 |
if ( newNode != NULL ) { |
|
3496
|
0 |
2 |
if ( name == NULL ) { |
|
3501
|
0 |
2 |
if ( newNode == NULL ) { |
|
3522
|
5 |
6 |
if ( !LibXML_test_node_name( name ) ) { |
|
3535
|
6 |
0 |
if ( value ) { |
|
3558
|
5 |
11 |
if ( !LibXML_test_node_name( name ) ) { |
|
3566
|
9 |
2 |
if ( nsURI != NULL && xmlStrlen(nsURI) > 0 ) { |
|
|
9 |
0 |
if ( nsURI != NULL && xmlStrlen(nsURI) > 0 ) { |
|
3568
|
8 |
1 |
if ( root ) { |
|
3570
|
8 |
0 |
if ( pchar != NULL ) { |
|
3577
|
5 |
3 |
if ( ns == NULL ) { |
|
3582
|
0 |
8 |
if ( ns == NULL ) { |
|
3585
|
0 |
0 |
if ( prefix ) { |
|
3589
|
0 |
0 |
if ( value ) { |
|
3602
|
8 |
0 |
if ( prefix ) { |
|
3606
|
8 |
0 |
if ( value ) { |
|
3627
|
2 |
0 |
if ( value ) { |
|
3649
|
0 |
4 |
if ( !n ) { |
|
3656
|
4 |
0 |
if ( newNode != NULL ) { |
|
3676
|
0 |
96 |
if ( elem == NULL ) { |
|
3683
|
96 |
0 |
if ( elem->type == XML_ELEMENT_NODE ) { |
|
3684
|
2 |
94 |
if ( self != elem->doc ) { |
|
3689
|
0 |
96 |
if ( oelem == NULL || oelem->_private == NULL ) { |
|
|
0 |
0 |
if ( oelem == NULL || oelem->_private == NULL ) { |
|
3699
|
96 |
0 |
if ( elem->_private != NULL ) { |
|
3700
|
96 |
0 |
PmmFixOwner( SvPROXYNODE(proxy), PmmPROXYNODE(self)); |
|
3716
|
158 |
95 |
if ( elem ) { |
|
3731
|
8 |
2 |
if ( self->extSubset == NULL ) { |
|
3746
|
5 |
36 |
if ( self->intSubset == NULL ) { |
|
3764
|
0 |
2 |
if ( dtd == NULL ) { |
|
3768
|
2 |
0 |
if ( dtd && dtd != self->extSubset ) { |
|
|
2 |
0 |
if ( dtd && dtd != self->extSubset ) { |
|
3769
|
0 |
2 |
if ( dtd->doc == NULL ) { |
|
3771
|
0 |
2 |
} else if ( dtd->doc != self ) { |
|
3775
|
1 |
1 |
if ( dtd == self->intSubset ) { |
|
3781
|
0 |
2 |
if ( olddtd && olddtd->_private == NULL ) { |
|
|
0 |
0 |
if ( olddtd && olddtd->_private == NULL ) { |
|
3796
|
0 |
2 |
if ( dtd == NULL ) { |
|
3800
|
2 |
0 |
if ( dtd && dtd != self->intSubset ) { |
|
|
2 |
0 |
if ( dtd && dtd != self->intSubset ) { |
|
3801
|
0 |
2 |
if ( dtd->doc != self ) { |
|
3806
|
1 |
1 |
if ( dtd == self->extSubset ) { |
|
3811
|
1 |
1 |
if( olddtd ) { |
|
3813
|
0 |
1 |
if ( olddtd->_private == NULL ) { |
|
3818
|
1 |
0 |
if (self->children == NULL) |
|
3833
|
0 |
1 |
if ( !dtd ) { |
|
3849
|
0 |
1 |
if ( !dtd ) { |
|
3866
|
4 |
0 |
if ( node->type == XML_DOCUMENT_NODE |
|
3867
|
0 |
4 |
|| node->type == XML_HTML_DOCUMENT_NODE ) { |
|
3871
|
0 |
4 |
if (node->type == XML_DTD_NODE) { |
|
3876
|
4 |
0 |
if ( ret ) { |
|
3895
|
6 |
0 |
if ( node->type == XML_DOCUMENT_NODE |
|
3896
|
0 |
6 |
|| node->type == XML_HTML_DOCUMENT_NODE ) { |
|
3900
|
0 |
6 |
if (node->type == XML_DTD_NODE) { |
|
3906
|
6 |
0 |
if ( ret ) { |
|
3910
|
6 |
0 |
PmmFixOwner(SvPROXYNODE(RETVAL), docfrag); |
|
3937
|
1 |
7 |
if ( self->encoding != NULL ) { |
|
3940
|
7 |
1 |
if (encoding!=NULL && strlen(encoding)) { |
|
|
7 |
0 |
if (encoding!=NULL && strlen(encoding)) { |
|
3943
|
0 |
7 |
if ( charset <= 0 ) { |
|
3969
|
1 |
0 |
if ( value > 0 ) { |
|
3972
|
0 |
0 |
else if ( value < 0 ) { |
|
3996
|
71 |
0 |
if ( self->version != NULL ) { |
|
4040
|
3 |
0 |
PmmClearPSVI(self); |
|
|
3 |
0 |
PmmClearPSVI(self); |
|
|
3 |
0 |
PmmClearPSVI(self); |
|
|
1 |
2 |
PmmClearPSVI(self); |
|
4041
|
3 |
0 |
PmmInvalidatePSVI(self); |
|
|
3 |
0 |
PmmInvalidatePSVI(self); |
|
4042
|
2 |
1 |
if (items > 1) { |
|
4044
|
2 |
0 |
if ( sv_isobject(dtd_sv) && (SvTYPE(SvRV(dtd_sv)) == SVt_PVMG) ) { |
|
|
2 |
0 |
if ( sv_isobject(dtd_sv) && (SvTYPE(SvRV(dtd_sv)) == SVt_PVMG) ) { |
|
4079
|
5 |
0 |
PmmClearPSVI(self); |
|
|
5 |
0 |
PmmClearPSVI(self); |
|
|
5 |
0 |
PmmClearPSVI(self); |
|
|
3 |
2 |
PmmClearPSVI(self); |
|
4080
|
5 |
0 |
PmmInvalidatePSVI(self); |
|
|
5 |
0 |
PmmInvalidatePSVI(self); |
|
4082
|
2 |
3 |
if (items > 1) { |
|
4084
|
2 |
0 |
if ( sv_isobject(dtd_sv) && (SvTYPE(SvRV(dtd_sv)) == SVt_PVMG) ) { |
|
|
2 |
0 |
if ( sv_isobject(dtd_sv) && (SvTYPE(SvRV(dtd_sv)) == SVt_PVMG) ) { |
|
4109
|
0 |
2 |
if ( ret == NULL ) { |
|
4127
|
22 |
0 |
if ( id != NULL ) { |
|
4129
|
5 |
17 |
if (attr == NULL) |
|
4131
|
17 |
0 |
else if (attr->type == XML_ATTRIBUTE_NODE) |
|
4133
|
0 |
0 |
else if (attr->type == XML_ELEMENT_NODE) |
|
4137
|
17 |
5 |
if (elem != NULL) { |
|
4199
|
20452 |
0 |
PmmREFCNT_dec(SvPROXYNODE(node)); |
|
4216
|
253 |
0 |
if ( name != NULL ) { |
|
4235
|
55 |
71 |
if ( self->type == XML_ELEMENT_NODE |
|
4236
|
0 |
55 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4237
|
0 |
0 |
|| self->type == XML_ELEMENT_DECL |
|
4238
|
0 |
0 |
|| self->type == XML_ATTRIBUTE_DECL ) { |
|
4254
|
14 |
44 |
if( ( self->type == XML_ELEMENT_NODE |
|
4255
|
0 |
14 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4256
|
0 |
0 |
|| self->type == XML_PI_NODE ) |
|
4257
|
11 |
47 |
&& self->ns != NULL |
|
4258
|
6 |
5 |
&& self->ns->prefix != NULL ) { |
|
4276
|
26 |
51 |
if ( ( self->type == XML_ELEMENT_NODE |
|
4277
|
0 |
26 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4278
|
0 |
0 |
|| self->type == XML_PI_NODE ) |
|
4279
|
25 |
52 |
&& self->ns != NULL |
|
4280
|
25 |
0 |
&& self->ns->href != NULL ) { |
|
4302
|
22 |
1 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
|
5 |
17 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
4307
|
17 |
6 |
if ( prefix != NULL) { |
|
4310
|
16 |
7 |
if ( ns != NULL ) { |
|
4330
|
7 |
0 |
if ( href != NULL && xmlStrlen(href) > 0) { |
|
|
7 |
0 |
if ( href != NULL && xmlStrlen(href) > 0) { |
|
4333
|
4 |
3 |
if ( ns != NULL ) { |
|
4334
|
3 |
1 |
if ( ns->prefix != NULL ) { |
|
4366
|
4 |
7 |
if ( !LibXML_test_node_name( string ) ) { |
|
4370
|
2 |
5 |
if( ( self->type == XML_ELEMENT_NODE |
|
4371
|
0 |
2 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4372
|
0 |
0 |
|| self->type == XML_PI_NODE) |
|
4373
|
5 |
2 |
&& self->ns ){ |
|
4375
|
3 |
2 |
if ( localname == NULL ) { |
|
4398
|
0 |
0 |
if ( !string || xmlStrlen( string) <= 0 ) { |
|
|
0 |
0 |
if ( !string || xmlStrlen( string) <= 0 ) { |
|
4402
|
0 |
0 |
if( ( self->type == XML_ELEMENT_NODE |
|
4403
|
0 |
0 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4404
|
0 |
0 |
|| self->type == XML_PI_NODE) |
|
4405
|
0 |
0 |
&& self->ns ){ |
|
4433
|
169 |
2 |
if ( content != NULL ) { |
|
4434
|
169 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
169 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
169 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
169 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
169 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
4468
|
158 |
0 |
RETVAL = PmmNodeToSv( self->parent, |
|
4469
|
158 |
0 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4480
|
15 |
0 |
RETVAL = PmmNodeToSv( self->next, |
|
4481
|
15 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4492
|
26 |
2 |
while (next != NULL && xmlIsBlankNode(next)) |
|
|
14 |
12 |
while (next != NULL && xmlIsBlankNode(next)) |
|
4494
|
14 |
0 |
RETVAL = PmmNodeToSv( next, |
|
4495
|
14 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4507
|
4 |
0 |
RETVAL = PmmNodeToSv( self->prev, |
|
4508
|
4 |
0 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4519
|
28 |
2 |
while (prev != NULL && xmlIsBlankNode(prev)) |
|
|
16 |
12 |
while (prev != NULL && xmlIsBlankNode(prev)) |
|
4521
|
14 |
0 |
RETVAL = PmmNodeToSv( prev, |
|
4522
|
14 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4537
|
165 |
0 |
int wantarray = GIMME_V; |
|
4540
|
165 |
0 |
if ( self->type != XML_ATTRIBUTE_NODE ) { |
|
4543
|
455 |
165 |
while ( cld ) { |
|
4544
|
30 |
425 |
if ( !(only_nonblank && xmlIsBlankNode(cld)) ) { |
|
|
14 |
16 |
if ( !(only_nonblank && xmlIsBlankNode(cld)) ) { |
|
4545
|
439 |
0 |
if( wantarray != G_SCALAR ) { |
|
4546
|
439 |
0 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
|
315 |
124 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4547
|
0 |
439 |
XPUSHs(sv_2mortal(element)); |
|
4554
|
0 |
165 |
if ( wantarray == G_SCALAR ) { |
|
4555
|
0 |
0 |
XPUSHs(sv_2mortal(newSViv(len)) ); |
|
4571
|
12 |
0 |
int wantarray = GIMME_V; |
|
4576
|
12 |
0 |
if ( nsURI != NULL ) { |
|
4577
|
0 |
12 |
if (xmlStrlen(nsURI) == 0 ) { |
|
4580
|
9 |
3 |
} else if (xmlStrcmp( nsURI, (xmlChar *)"*" )==0) { |
|
4584
|
12 |
0 |
if ( name !=NULL && xmlStrcmp( name, (xmlChar *)"*" ) == 0) { |
|
|
6 |
6 |
if ( name !=NULL && xmlStrcmp( name, (xmlChar *)"*" ) == 0) { |
|
4587
|
12 |
0 |
if ( self->type != XML_ATTRIBUTE_NODE ) { |
|
4590
|
36 |
12 |
while ( cld ) { |
|
4591
|
18 |
18 |
if (((name_wildcard && (cld->type == XML_ELEMENT_NODE)) || |
|
4593
|
6 |
18 |
&& (ns_wildcard || |
|
|
3 |
3 |
&& (ns_wildcard || |
|
4594
|
0 |
3 |
(cld->ns != NULL && |
|
4595
|
3 |
0 |
xmlStrcmp(nsURI,cld->ns->href) == 0 ) || |
|
4596
|
0 |
3 |
(cld->ns == NULL && nsURI == NULL))) { |
|
4597
|
21 |
0 |
if( wantarray != G_SCALAR ) { |
|
4598
|
21 |
0 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
|
21 |
0 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4599
|
0 |
21 |
XPUSHs(sv_2mortal(element)); |
|
4606
|
0 |
12 |
if ( wantarray == G_SCALAR ) { |
|
4607
|
0 |
0 |
XPUSHs(sv_2mortal(newSViv(len)) ); |
|
4610
|
12 |
0 |
if (nsURI) xmlFree(nsURI); |
|
4619
|
51 |
0 |
RETVAL = PmmNodeToSv( self->children, |
|
4620
|
20 |
31 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4631
|
4 |
0 |
while (child !=NULL && xmlIsBlankNode(child)) |
|
|
2 |
2 |
while (child !=NULL && xmlIsBlankNode(child)) |
|
4633
|
2 |
0 |
RETVAL = PmmNodeToSv( child, |
|
4634
|
2 |
0 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4645
|
28 |
0 |
RETVAL = PmmNodeToSv( self->last, |
|
4646
|
3 |
25 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4660
|
51 |
0 |
int wantarray = GIMME_V; |
|
4663
|
51 |
0 |
if ( self->type != XML_ATTRIBUTE_NODE |
|
4664
|
50 |
1 |
&& self->type != XML_DTD_NODE ) { |
|
4666
|
33 |
50 |
while ( attr != NULL ) { |
|
4667
|
33 |
0 |
if ( wantarray != G_SCALAR ) { |
|
4668
|
33 |
0 |
element = PmmNodeToSv((xmlNodePtr)attr, |
|
4669
|
33 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4670
|
0 |
33 |
XPUSHs(sv_2mortal(element)); |
|
4675
|
50 |
0 |
if (self->type == XML_ELEMENT_NODE) { |
|
4677
|
14 |
50 |
while ( ns != NULL ) { |
|
4679
|
14 |
0 |
if ( wantarray != G_SCALAR ) { |
|
4690
|
2 |
12 |
if ((ns->prefix != NULL || ns->href != NULL)) { |
|
|
2 |
0 |
if ((ns->prefix != NULL || ns->href != NULL)) { |
|
4692
|
14 |
0 |
if ( tns != NULL ) { |
|
4694
|
0 |
14 |
XPUSHs(sv_setref_pv( element, |
|
4705
|
0 |
51 |
if( wantarray == G_SCALAR ) { |
|
4706
|
0 |
0 |
XPUSHs( sv_2mortal(newSViv(len)) ); |
|
4713
|
2 |
123 |
if ( self->type == XML_ATTRIBUTE_NODE ) { |
|
4726
|
2 |
0 |
if ( self->type == XML_ATTRIBUTE_NODE |
|
4727
|
1 |
1 |
|| self->type == XML_DTD_NODE ) { |
|
4744
|
19 |
0 |
if( self != NULL |
|
4745
|
17 |
2 |
&& self->doc != NULL ){ |
|
4762
|
0 |
0 |
RETVAL = PmmNodeToSv(PmmNODE(PmmOWNERPO(PmmPROXYNODE(self))), NULL); |
|
|
0 |
0 |
RETVAL = PmmNodeToSv(PmmNODE(PmmOWNERPO(PmmPROXYNODE(self))), NULL); |
|
4785
|
8 |
0 |
if ( rNode != NULL ) { |
|
4786
|
8 |
0 |
RETVAL = PmmNodeToSv( rNode, |
|
4787
|
5 |
3 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4788
|
2 |
6 |
if (rNode->type == XML_DTD_NODE) { |
|
4791
|
8 |
0 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
|
5 |
3 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
4810
|
6 |
0 |
if ( rNode != NULL ) { |
|
4811
|
6 |
0 |
RETVAL = PmmNodeToSv( rNode, |
|
4812
|
3 |
3 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4813
|
2 |
4 |
if (rNode->type == XML_DTD_NODE) { |
|
4816
|
6 |
0 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
|
3 |
3 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
4833
|
5 |
0 |
if (nNode == oNode || self == nNode ) { |
|
|
0 |
5 |
if (nNode == oNode || self == nNode ) { |
|
4835
|
0 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
|
0 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
4838
|
2 |
3 |
if ( self->type == XML_DOCUMENT_NODE ) { |
|
4858
|
0 |
5 |
if (ret == NULL) { |
|
4863
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
4864
|
2 |
3 |
if (nNode->type == XML_DTD_NODE) { |
|
4867
|
5 |
0 |
if ( nNode->_private != NULL ) { |
|
4868
|
5 |
0 |
PmmFixOwner( PmmPROXYNODE(nNode), |
|
4869
|
3 |
2 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4884
|
0 |
5 |
if ( domIsParent( self, nNode ) == 1 ) { |
|
4887
|
5 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
|
5 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
4889
|
4 |
1 |
if ( self->type != XML_ATTRIBUTE_NODE ) { |
|
4895
|
5 |
0 |
if ( ret ) { |
|
4897
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
4898
|
3 |
2 |
if (nNode->type == XML_DTD_NODE) { |
|
4901
|
5 |
0 |
if ( nNode->_private != NULL ) { |
|
4920
|
1 |
14 |
if (ret == NULL) { |
|
4940
|
4 |
2 |
while ( elem ) { |
|
4943
|
4 |
0 |
if (elem->type == XML_ATTRIBUTE_NODE |
|
4944
|
1 |
3 |
|| elem->type == XML_DTD_NODE) { |
|
4945
|
0 |
1 |
if (PmmPROXYNODE(elem) == NULL) { |
|
4954
|
1 |
2 |
if ( fragment->children != NULL ) { |
|
4969
|
2 |
0 |
if ( PmmREFCNT(docfrag) <= 0 ) { |
|
4985
|
10 |
0 |
if ( self->type != XML_DOCUMENT_NODE |
|
4986
|
10 |
0 |
&& self->type != XML_DOCUMENT_FRAG_NODE ) { |
|
4998
|
3 |
58 |
if (self->type == XML_DOCUMENT_NODE ) { |
|
5022
|
0 |
59 |
if ( rNode == NULL ) { |
|
5026
|
59 |
0 |
RETVAL = PmmNodeToSv( nNode, |
|
5027
|
55 |
4 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
5028
|
1 |
58 |
if (nNode->type == XML_DTD_NODE) { |
|
5031
|
59 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), PmmPROXYNODE(self) ); |
|
5069
|
0 |
39 |
if ( retval == NULL ) { |
|
5073
|
1 |
38 |
if ( retval != nNode ) { |
|
5078
|
39 |
0 |
RETVAL = PmmNodeToSv( retval, |
|
5079
|
20 |
19 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
5080
|
38 |
1 |
if ( retval != self ) { |
|
5081
|
38 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), PmmPROXYNODE(self) ); |
|
5095
|
0 |
6 |
if ( nNode->type == XML_DOCUMENT_FRAG_NODE ) { |
|
5099
|
6 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
|
6 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
5101
|
1 |
5 |
if (self->type == XML_TEXT_NODE && nNode->type == XML_TEXT_NODE |
|
|
1 |
0 |
if (self->type == XML_TEXT_NODE && nNode->type == XML_TEXT_NODE |
|
5102
|
1 |
0 |
&& self->name == nNode->name) { |
|
5107
|
1 |
0 |
if (ret) { |
|
5121
|
5 |
0 |
if ( ret ) { |
|
5123
|
2 |
3 |
if (nNode->type == XML_DTD_NODE) { |
|
5126
|
5 |
0 |
PmmFixOwner(SvPROXYNODE(RETVAL), owner); |
|
5145
|
0 |
6 |
if ( ret == NULL ) { |
|
5149
|
1 |
5 |
if ( ret->type == XML_DTD_NODE ) { |
|
5155
|
5 |
0 |
if ( doc != NULL ) { |
|
5207
|
7 |
0 |
if ( uri != NULL ) { |
|
5227
|
156 |
0 |
if ( internalFlag ) { |
|
5228
|
156 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
156 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
156 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
156 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
156 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
156 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
155 |
1 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
155 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
1 |
155 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
|
0 |
0 |
xmlSaveNoEmptyTags = SvTRUE(internalFlag); |
|
5232
|
152 |
4 |
if ( format <= 0 ) { |
|
5250
|
156 |
0 |
if ( ret != NULL ) { |
|
5251
|
2 |
154 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
2 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
2 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
2 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
2 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
2 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
2 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
2 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
2 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
5291
|
0 |
24 |
if ( self->doc == NULL ) { |
|
5297
|
24 |
0 |
if ( xpath != NULL && xpath != &PL_sv_undef ) { |
|
|
11 |
13 |
if ( xpath != NULL && xpath != &PL_sv_undef ) { |
|
5301
|
11 |
13 |
if ( nodepath != NULL && xmlStrlen( nodepath ) == 0 ) { |
|
|
0 |
11 |
if ( nodepath != NULL && xmlStrlen( nodepath ) == 0 ) { |
|
5306
|
13 |
11 |
if ( nodepath == NULL |
|
5307
|
3 |
10 |
&& self->type != XML_DOCUMENT_NODE |
|
5308
|
3 |
0 |
&& self->type != XML_HTML_DOCUMENT_NODE |
|
5309
|
3 |
0 |
&& self->type != XML_DOCB_DOCUMENT_NODE |
|
5311
|
0 |
3 |
if (comments) |
|
5317
|
14 |
10 |
if ( nodepath != NULL ) { |
|
5318
|
4 |
10 |
if ( self->type == XML_DOCUMENT_NODE |
|
5319
|
4 |
0 |
|| self->type == XML_HTML_DOCUMENT_NODE |
|
5320
|
0 |
4 |
|| self->type == XML_DOCB_DOCUMENT_NODE ) { |
|
5323
|
12 |
2 |
if (SvOK(xpath_context)) { |
|
|
12 |
0 |
if (SvOK(xpath_context)) { |
|
|
0 |
12 |
if (SvOK(xpath_context)) { |
|
5324
|
2 |
0 |
child_ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(xpath_context))); |
|
5325
|
0 |
2 |
if ( child_ctxt == NULL ) { |
|
5332
|
0 |
14 |
if (!child_ctxt) { |
|
5333
|
0 |
0 |
if ( nodepath != NULL ) { |
|
5343
|
13 |
1 |
if (child_ctxt->namespaces != NULL) { |
|
5347
|
12 |
2 |
if (!xpath_context) xmlXPathFreeContext(child_ctxt); |
|
5348
|
14 |
0 |
if ( nodepath != NULL ) { |
|
5352
|
0 |
14 |
if (xpath_res == NULL) { |
|
5357
|
0 |
14 |
if ( nodelist == NULL ) { |
|
5371
|
14 |
10 |
if ( xpath_res ) xmlXPathFreeObject(xpath_res); |
|
5375
|
0 |
24 |
if (result == NULL) { |
|
5397
|
100 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
100 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
99 |
1 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
99 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
99 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
1 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
1 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
1 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
1 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
1 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( SvTRUE(useDomEncoding) ) { |
|
5432
|
0 |
54 |
if ( node == NULL ) { |
|
5435
|
3 |
51 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
|
3 |
0 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
5436
|
3 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( pxpath ))); |
|
5437
|
0 |
3 |
if (!comp) XSRETURN_UNDEF; |
|
5440
|
51 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
51 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
5442
|
0 |
0 |
if ( xpath ) |
|
5450
|
3 |
51 |
if (comp) { |
|
5457
|
42 |
12 |
if (found) { |
|
5463
|
0 |
25 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::NodeList", 0))); |
|
5465
|
25 |
0 |
if ( nodelist ) { |
|
5466
|
25 |
0 |
if ( nodelist->nodeNr > 0 ) { |
|
5473
|
25 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
25 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
0 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
25 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
1 |
24 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
1 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
24 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
5474
|
40 |
25 |
for( i=0 ; i < l; i++){ |
|
5484
|
0 |
40 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
5486
|
0 |
0 |
if ( newns != NULL ) { |
|
5502
|
0 |
40 |
XPUSHs( sv_2mortal(element) ); |
|
5512
|
0 |
12 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Boolean", 0))); |
|
5513
|
0 |
12 |
XPUSHs(sv_2mortal(newSViv(found->boolval))); |
|
5518
|
0 |
2 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Number", 0))); |
|
5519
|
0 |
2 |
XPUSHs(sv_2mortal(newSVnv(found->floatval))); |
|
5524
|
0 |
3 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Literal", 0))); |
|
5525
|
0 |
3 |
XPUSHs(sv_2mortal(C2Sv(found->stringval, NULL))); |
|
5548
|
0 |
95 |
if ( node == NULL ) { |
|
5549
|
0 |
0 |
if ( xpath ) |
|
5553
|
3 |
92 |
if (sv_isobject(perl_xpath) && sv_isa(perl_xpath,"XML::LibXML::XPathExpression")) { |
|
|
3 |
0 |
if (sv_isobject(perl_xpath) && sv_isa(perl_xpath,"XML::LibXML::XPathExpression")) { |
|
5554
|
3 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( perl_xpath ))); |
|
5555
|
0 |
3 |
if (!comp) XSRETURN_UNDEF; |
|
5558
|
92 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
92 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
5560
|
0 |
0 |
if ( xpath ) |
|
5568
|
3 |
92 |
if (comp) { |
|
5576
|
87 |
8 |
if ( nodelist ) { |
|
5578
|
81 |
6 |
if ( nodelist->nodeNr > 0 ) { |
|
5583
|
81 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
81 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
0 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
81 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
22 |
59 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
22 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
|
59 |
0 |
owner = PmmOWNERPO(SvPROXYNODE(pnode)); |
|
5585
|
6199 |
81 |
for(i=0 ; i < len; i++){ |
|
5592
|
3 |
6196 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
5594
|
2 |
1 |
if ( newns != NULL ) { |
|
5610
|
3 |
6195 |
XPUSHs( sv_2mortal(element) ); |
|
5632
|
0 |
37 |
if ( node == NULL ) { |
|
5636
|
37 |
0 |
if (node->type == XML_ELEMENT_NODE) { |
|
5638
|
5 |
37 |
while ( ns != NULL ) { |
|
5639
|
2 |
3 |
if (ns->prefix != NULL || ns->href != NULL) { |
|
|
2 |
0 |
if (ns->prefix != NULL || ns->href != NULL) { |
|
5641
|
5 |
0 |
if ( newns != NULL ) { |
|
5647
|
0 |
5 |
XPUSHs( sv_2mortal(element) ); |
|
5666
|
0 |
1 |
if ( node->type == XML_ELEMENT_NODE |
|
5667
|
0 |
0 |
|| node->type == XML_ATTRIBUTE_NODE |
|
5668
|
0 |
0 |
|| node->type == XML_PI_NODE ) { |
|
5670
|
1 |
0 |
if ( ns != NULL ) { |
|
5672
|
1 |
0 |
if ( newns != NULL ) { |
|
5699
|
0 |
3 |
if ( path == NULL ) { |
|
5744
|
0 |
33 |
if ( node == NULL ) { |
|
5753
|
1 |
32 |
if ( xmlStrlen( nsPrefix ) == 0 ) { |
|
5757
|
1 |
32 |
if ( xmlStrlen( nsURI ) == 0 ) { |
|
5761
|
1 |
32 |
if ( nsPrefix == NULL && nsURI == NULL ) { |
|
|
1 |
0 |
if ( nsPrefix == NULL && nsURI == NULL ) { |
|
5763
|
0 |
1 |
if ( (ns = xmlSearchNs(node->doc, node, NULL)) && |
|
|
0 |
0 |
if ( (ns = xmlSearchNs(node->doc, node, NULL)) && |
|
5764
|
0 |
0 |
( ns->href && xmlStrlen( ns->href ) != 0 ) ) { |
|
5767
|
1 |
0 |
} else if ( flag ) { |
|
5775
|
4 |
28 |
else if ( flag && (ns = xmlSearchNs(node->doc, node, nsPrefix)) ) { |
|
|
1 |
3 |
else if ( flag && (ns = xmlSearchNs(node->doc, node, nsPrefix)) ) { |
|
5778
|
1 |
0 |
if ( xmlStrEqual( ns->href, nsURI ) ) { |
|
5781
|
0 |
0 |
else if ( (ns = xmlNewNs( node, nsURI, nsPrefix )) ) { |
|
5788
|
31 |
0 |
else if ( (ns = xmlNewNs( node, nsURI, nsPrefix )) ) |
|
5793
|
5 |
28 |
if ( flag && ns ) { |
|
|
4 |
1 |
if ( flag && ns ) { |
|
5796
|
32 |
1 |
if ( nsPrefix ) xmlFree(nsPrefix); |
|
5797
|
32 |
1 |
if ( nsURI ) xmlFree(nsURI); |
|
5815
|
15 |
0 |
if ( prefix && xmlStrlen(prefix) == 0) { |
|
|
3 |
12 |
if ( prefix && xmlStrlen(prefix) == 0) { |
|
5819
|
12 |
3 |
if ( nsURI && xmlStrlen(nsURI) == 0) { |
|
|
0 |
12 |
if ( nsURI && xmlStrlen(nsURI) == 0) { |
|
5824
|
20 |
8 |
while ( ns ) { |
|
5825
|
11 |
9 |
if ((ns->prefix || ns->href ) && |
|
5827
|
7 |
0 |
if (ns->href) xmlFree((char*)ns->href); |
|
5829
|
3 |
4 |
if ( nsURI == NULL ) { |
|
5839
|
12 |
3 |
if ( prefix ) xmlFree( prefix ); |
|
5840
|
8 |
7 |
if ( nsURI ) xmlFree( nsURI ); |
|
5858
|
6 |
0 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
|
1 |
5 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
5862
|
5 |
1 |
if ( nsPrefix != NULL && xmlStrlen(nsPrefix) == 0) { |
|
|
2 |
3 |
if ( nsPrefix != NULL && xmlStrlen(nsPrefix) == 0) { |
|
5866
|
0 |
6 |
if ( xmlStrcmp( prefix, nsPrefix ) == 0 ) { |
|
5871
|
2 |
4 |
if ( ns != NULL ) { |
|
5872
|
1 |
1 |
if (nsPrefix != NULL) xmlFree( nsPrefix ); |
|
5873
|
2 |
0 |
if (prefix != NULL) xmlFree( prefix ); |
|
5878
|
7 |
0 |
while ( ns != NULL ) { |
|
5879
|
3 |
4 |
if ((ns->prefix != NULL || ns->href != NULL) && |
|
5881
|
1 |
3 |
if ( ns->href == NULL && nsPrefix != NULL ) { |
|
|
0 |
1 |
if ( ns->href == NULL && nsPrefix != NULL ) { |
|
5883
|
0 |
0 |
if ( prefix != NULL) xmlFree(prefix); |
|
5886
|
3 |
1 |
if ( ns->prefix != NULL ) |
|
5897
|
0 |
4 |
if ( nsPrefix != NULL ) xmlFree(nsPrefix); |
|
5898
|
3 |
1 |
if ( prefix != NULL) xmlFree(prefix); |
|
5912
|
21 |
1 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
|
3 |
18 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
5918
|
24 |
9 |
while ( ns != NULL ) { |
|
5919
|
8 |
16 |
if ( (ns->prefix != NULL || ns->href != NULL) && |
|
5927
|
18 |
4 |
if ( prefix != NULL ) { |
|
5942
|
0 |
16 |
if ( ! name ) { |
|
5945
|
9 |
7 |
if ( domGetAttrNode( self, name ) ) { |
|
5968
|
0 |
16 |
if ( name == NULL ) { |
|
5969
|
0 |
0 |
if ( nsURI != NULL ) { |
|
5974
|
14 |
2 |
if ( nsURI != NULL && xmlStrlen(nsURI) == 0 ){ |
|
|
2 |
12 |
if ( nsURI != NULL && xmlStrlen(nsURI) == 0 ){ |
|
5979
|
10 |
6 |
if ( attr && attr->type == XML_ATTRIBUTE_NODE ) { |
|
|
8 |
2 |
if ( attr && attr->type == XML_ATTRIBUTE_NODE ) { |
|
5987
|
12 |
4 |
if ( nsURI != NULL ){ |
|
6006
|
0 |
46 |
if( !name ) { |
|
6011
|
7 |
39 |
if ( ret == NULL ) { |
|
6013
|
7 |
0 |
if ( localname != NULL ) { |
|
6015
|
7 |
0 |
if ( ns != NULL ) { |
|
6018
|
7 |
0 |
if ( prefix != NULL) { |
|
6025
|
46 |
0 |
if ( ret ) { |
|
6026
|
9 |
37 |
if ( useDomEncoding ) { |
|
6056
|
4 |
24 |
if ( !LibXML_test_node_name(name) ) { |
|
6101
|
4 |
0 |
if ( name ) { |
|
6104
|
4 |
0 |
if ( xattr ) { |
|
6106
|
1 |
3 |
if ( xattr->_private ) { |
|
6125
|
0 |
45 |
if ( !name ) { |
|
6131
|
30 |
15 |
if ( ret ) { |
|
6132
|
30 |
0 |
RETVAL = PmmNodeToSv( (xmlNodePtr)ret, |
|
6133
|
30 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
6149
|
0 |
1 |
if ( attr == NULL ) { |
|
6153
|
1 |
0 |
if ( attr != NULL && attr->type != XML_ATTRIBUTE_NODE ) { |
|
|
0 |
1 |
if ( attr != NULL && attr->type != XML_ATTRIBUTE_NODE ) { |
|
6156
|
0 |
1 |
if ( attr->doc != self->doc ) { |
|
6160
|
0 |
1 |
if ( ret != NULL ) { |
|
6161
|
0 |
0 |
if ( ret != attr ) { |
|
6172
|
1 |
0 |
if ( attr->_private != NULL ) { |
|
6173
|
1 |
0 |
PmmFixOwner( SvPROXYNODE(attr_node), PmmPROXYNODE(self) ); |
|
6176
|
1 |
0 |
if ( ret == NULL ) { |
|
6181
|
0 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), NULL ); |
|
6198
|
0 |
22 |
if ( !name ) { |
|
6202
|
21 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
20 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6210
|
21 |
1 |
if ( nsURI ) { |
|
6213
|
22 |
0 |
if ( ret ) { |
|
6214
|
0 |
22 |
if (useDomEncoding) { |
|
6245
|
3 |
45 |
if ( !LibXML_test_node_name(name) ) { |
|
6252
|
21 |
24 |
if ( localname ) { |
|
6259
|
44 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
24 |
20 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6269
|
20 |
4 |
if ( ns && !ns->prefix ) |
|
|
4 |
16 |
if ( ns && !ns->prefix ) |
|
6272
|
4 |
0 |
if ( all_ns ) |
|
6276
|
13 |
1 |
while ( ns ) |
|
6278
|
5 |
8 |
if ( ns->prefix && xmlStrEqual(ns->href, nsURI) ) |
|
|
3 |
2 |
if ( ns->prefix && xmlStrEqual(ns->href, nsURI) ) |
|
6288
|
5 |
19 |
if ( !ns ) { |
|
6290
|
5 |
0 |
if ( prefix && xmlStrlen( prefix ) ) { |
|
|
5 |
0 |
if ( prefix && xmlStrlen( prefix ) ) { |
|
6299
|
44 |
1 |
if ( nsURI && xmlStrlen(nsURI) && !ns ) { |
|
|
24 |
20 |
if ( nsURI && xmlStrlen(nsURI) && !ns ) { |
|
|
0 |
24 |
if ( nsURI && xmlStrlen(nsURI) && !ns ) { |
|
6300
|
0 |
0 |
if ( prefix ) xmlFree( prefix ); |
|
6301
|
0 |
0 |
if ( nsURI ) xmlFree( nsURI ); |
|
6311
|
21 |
24 |
if ( prefix ) { |
|
6314
|
44 |
1 |
if ( nsURI ) { |
|
6332
|
0 |
3 |
if ( ! name ) { |
|
6337
|
3 |
0 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
2 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6343
|
3 |
0 |
if ( xattr && xattr->type == XML_ATTRIBUTE_NODE ) { |
|
|
3 |
0 |
if ( xattr && xattr->type == XML_ATTRIBUTE_NODE ) { |
|
6345
|
2 |
1 |
if ( xattr->_private ) { |
|
6368
|
0 |
33 |
if ( !name ) { |
|
6372
|
20 |
13 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
20 |
0 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6379
|
20 |
13 |
if ( nsURI ) { |
|
6382
|
18 |
15 |
if ( ret && |
|
|
12 |
6 |
if ( ret && |
|
6385
|
12 |
0 |
RETVAL = PmmNodeToSv( (xmlNodePtr)ret, |
|
6386
|
12 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
6404
|
0 |
4 |
if ( attr == NULL ) { |
|
6408
|
0 |
4 |
if ( attr->type != XML_ATTRIBUTE_NODE ) { |
|
6412
|
1 |
3 |
if ( attr->doc != self->doc ) { |
|
6418
|
4 |
0 |
if ( ns != NULL ) { |
|
6425
|
0 |
4 |
if ( ret && ret->type == XML_ATTRIBUTE_NODE ) { |
|
|
0 |
0 |
if ( ret && ret->type == XML_ATTRIBUTE_NODE ) { |
|
6426
|
0 |
0 |
if ( ret != attr ) { |
|
6437
|
4 |
0 |
if ( attr->_private != NULL ) { |
|
6438
|
4 |
0 |
PmmFixOwner( SvPROXYNODE(attr_node), PmmPROXYNODE(self) ); |
|
6440
|
0 |
4 |
if ( ret != NULL && ret->type == XML_ATTRIBUTE_NODE ) { |
|
|
0 |
0 |
if ( ret != NULL && ret->type == XML_ATTRIBUTE_NODE ) { |
|
6442
|
0 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), NULL ); |
|
6457
|
0 |
3 |
if ( attr == NULL ) { |
|
6461
|
0 |
3 |
if ( attr->type != XML_ATTRIBUTE_NODE ) { |
|
6464
|
0 |
3 |
if ( attr->parent != self ) { |
|
6470
|
3 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), NULL ); |
|
6487
|
0 |
88 |
if ( content == NULL ) { |
|
6490
|
0 |
88 |
if ( xmlStrlen(content) == 0 ) { |
|
6511
|
0 |
3 |
if ( xmlStrlen(name) == 0 ) { |
|
6517
|
2 |
1 |
if ( content && xmlStrlen( content ) == 0 ) { |
|
|
0 |
2 |
if ( content && xmlStrlen( content ) == 0 ) { |
|
6521
|
2 |
1 |
else if ( content ) { |
|
6528
|
2 |
1 |
if ( encstr ) |
|
6550
|
72 |
0 |
if ( name && xmlStrlen( name ) == 0 ) { |
|
|
0 |
72 |
if ( name && xmlStrlen( name ) == 0 ) { |
|
6556
|
72 |
0 |
if ( nsURI && xmlStrlen( nsURI ) == 0 ) { |
|
|
50 |
22 |
if ( nsURI && xmlStrlen( nsURI ) == 0 ) { |
|
6561
|
22 |
50 |
if ( nsURI != NULL ) { |
|
6565
|
20 |
2 |
newNode = xmlNewDocNode(self->doc, |
|
6569
|
4 |
18 |
if ( ns == NULL ) { |
|
6589
|
31 |
41 |
if (self->children == NULL) { |
|
6598
|
72 |
0 |
RETVAL = PmmNodeToSv(newNode, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
|
40 |
32 |
RETVAL = PmmNodeToSv(newNode, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
6615
|
18 |
0 |
if( newNode != NULL ) { |
|
6635
|
4 |
0 |
if ( offset >= 0 && length >= 0 ) { |
|
|
4 |
0 |
if ( offset >= 0 && length >= 0 ) { |
|
6637
|
4 |
0 |
if ( data != NULL ) { |
|
6675
|
2 |
0 |
encstring = Sv2C( value, |
|
6678
|
2 |
0 |
if ( encstring != NULL ) { |
|
6696
|
5 |
0 |
if ( offset >= 0 ) { |
|
6697
|
5 |
0 |
encstring = Sv2C( value, |
|
6699
|
5 |
0 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
|
4 |
1 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
6701
|
4 |
0 |
if ( data != NULL && xmlStrlen( data ) > 0 ) { |
|
|
4 |
0 |
if ( data != NULL && xmlStrlen( data ) > 0 ) { |
|
6702
|
0 |
4 |
if ( xmlUTF8Strlen( data ) < offset ) { |
|
6709
|
4 |
0 |
if ( offset > 0 ) |
|
6714
|
4 |
0 |
if ( new != NULL ) { |
|
6721
|
4 |
0 |
if ( after != NULL ) |
|
6751
|
7 |
2 |
if ( length > 0 && offset >= 0 ) { |
|
|
7 |
0 |
if ( length > 0 && offset >= 0 ) { |
|
6754
|
7 |
0 |
if ( data != NULL |
|
6755
|
7 |
0 |
&& len > 0 |
|
6756
|
5 |
2 |
&& len > offset ) { |
|
6758
|
4 |
1 |
if ( offset > 0 ) |
|
6761
|
3 |
2 |
if ( len > dl1 ) { |
|
6764
|
2 |
1 |
if ( new != NULL ) { |
|
6793
|
6 |
0 |
if ( offset >= 0 ) { |
|
6794
|
6 |
0 |
encstring = Sv2C( value, |
|
6797
|
6 |
0 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
|
6 |
0 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
6801
|
6 |
0 |
if ( data != NULL |
|
6802
|
6 |
0 |
&& len > 0 |
|
6803
|
6 |
0 |
&& len > offset ) { |
|
6806
|
4 |
2 |
if ( dl1 < len ) { |
|
6808
|
4 |
0 |
if ( offset > 0 ) { |
|
6826
|
2 |
0 |
if ( offset > 0 ) { |
|
6856
|
7 |
0 |
if( newNode != NULL ) { |
|
6880
|
7 |
0 |
if ( newNode != NULL ){ |
|
6916
|
0 |
0 |
if ( name == NULL ) { |
|
6955
|
4 |
0 |
if ( xmlBufferLength(buffer) > 0 ) { |
|
6958
|
4 |
0 |
if ( ret != NULL ) { |
|
6959
|
0 |
4 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
6994
|
2 |
8 |
if ((node->ns != NULL) && (node->ns->prefix != NULL)) { |
|
|
2 |
0 |
if ((node->ns != NULL) && (node->ns->prefix != NULL)) { |
|
7003
|
10 |
0 |
if ( xmlBufferLength(buffer) > 0 ) { |
|
7006
|
10 |
0 |
if ( ret != NULL ) { |
|
7007
|
0 |
10 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
|
0 |
0 |
if ( useDomEncoding != &PL_sv_undef && SvTRUE(useDomEncoding) ) { |
|
7035
|
0 |
2 |
if ( node == NULL ) { |
|
7039
|
2 |
0 |
if ( !nsURI || xmlStrlen(nsURI)==0 ){ |
|
|
1 |
1 |
if ( !nsURI || xmlStrlen(nsURI)==0 ){ |
|
7043
|
0 |
2 |
if ( !node->parent ) { |
|
7052
|
0 |
1 |
else if ( (ns = xmlSearchNsByHref(node->doc, node->parent, nsURI)) ) { |
|
7056
|
0 |
1 |
else if (! RETVAL) |
|
7059
|
1 |
1 |
if ( ns ) { |
|
7060
|
1 |
0 |
if ( ns->prefix ) { |
|
7078
|
0 |
10 |
if ( attr == NULL ) { |
|
7082
|
10 |
0 |
if ( elem == NULL || elem->doc == NULL ) { |
|
|
0 |
10 |
if ( elem == NULL || elem->doc == NULL ) { |
|
7104
|
0 |
14 |
if ( !nsURI ) { |
|
7109
|
14 |
0 |
if ( ns ) { |
|
7116
|
9 |
5 |
if ( nsPrefix ) |
|
7125
|
36 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7128
|
36 |
0 |
if (ns) { |
|
7138
|
3 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7156
|
12 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7173
|
20 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7187
|
10 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7203
|
0 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7204
|
0 |
0 |
xmlNsPtr ons = INT2PTR(xmlNsPtr,SvIV(SvRV(ref_node))); |
|
7207
|
0 |
0 |
if ( ns == ons ) { |
|
7210
|
0 |
0 |
else if ( xmlStrEqual(ns->href, ons->href) |
|
7211
|
0 |
0 |
&& xmlStrEqual(ns->prefix, ons->prefix) ) { |
|
7233
|
2 |
2 |
if ( dtd == NULL ) { |
|
7253
|
1 |
2 |
if ( self->SystemID == NULL ) { |
|
7268
|
1 |
2 |
if ( self->ExternalID == NULL ) { |
|
7288
|
0 |
4 |
if (items > 2) { |
|
7290
|
0 |
0 |
if (items > 3) { |
|
7295
|
0 |
0 |
enc = xmlParseCharEncoding(SvPV_nolen(encoding_sv)); |
|
7296
|
0 |
0 |
if (enc == XML_CHAR_ENCODING_ERROR) { |
|
7299
|
0 |
0 |
croak("Parse of encoding %s failed", SvPV_nolen(encoding_sv)); |
|
7304
|
0 |
4 |
if ( !buffer) { |
|
7316
|
3 |
1 |
if ( res && LibXML_will_die_ctx(saved_error, 0) ) |
|
|
0 |
3 |
if ( res && LibXML_will_die_ctx(saved_error, 0) ) |
|
7320
|
0 |
3 |
if (res == NULL) { |
|
7353
|
0 |
6 |
if ( rngctxt == NULL ) { |
|
7364
|
6 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
|
1 |
5 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
7371
|
6 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
|
1 |
5 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
7376
|
4 |
2 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7394
|
3 |
0 |
string = SvPV( perlstring, len ); |
|
7395
|
0 |
3 |
if ( string == NULL ) { |
|
7402
|
0 |
3 |
if ( rngctxt == NULL ) { |
|
7413
|
3 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
|
1 |
2 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
7420
|
3 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
|
1 |
2 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
7425
|
1 |
2 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7444
|
0 |
2 |
if ( rngctxt == NULL ) { |
|
7455
|
2 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
|
0 |
2 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
7462
|
2 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
|
0 |
2 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
7467
|
1 |
1 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7481
|
7 |
0 |
if (doc) { |
|
7482
|
7 |
0 |
PmmClearPSVI(doc); |
|
|
7 |
0 |
PmmClearPSVI(doc); |
|
|
7 |
0 |
PmmClearPSVI(doc); |
|
|
4 |
3 |
PmmClearPSVI(doc); |
|
7483
|
7 |
0 |
PmmInvalidatePSVI(doc); |
|
|
7 |
0 |
PmmInvalidatePSVI(doc); |
|
7486
|
0 |
7 |
if ( vctxt == NULL ) { |
|
7508
|
0 |
3 |
if ( RETVAL == 1 ) { |
|
7511
|
0 |
3 |
if ( RETVAL == -1 ) { |
|
7542
|
0 |
5 |
if ( rngctxt == NULL ) { |
|
7554
|
5 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
|
1 |
4 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
7561
|
5 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
|
1 |
4 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
7566
|
4 |
1 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7584
|
4 |
0 |
string = SvPV( perlstring, len ); |
|
7585
|
0 |
4 |
if ( string == NULL ) { |
|
7592
|
0 |
4 |
if ( rngctxt == NULL ) { |
|
7604
|
4 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
|
1 |
3 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) { |
|
7611
|
4 |
0 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
|
1 |
3 |
if ( EXTERNAL_ENTITY_LOADER_FUNC == NULL && (parser_options & XML_PARSE_NONET) ) |
|
7616
|
3 |
1 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7631
|
2 |
1 |
if (node->type == XML_DOCUMENT_NODE) { |
|
7632
|
2 |
0 |
PmmClearPSVI((xmlDocPtr)node); |
|
|
2 |
0 |
PmmClearPSVI((xmlDocPtr)node); |
|
|
2 |
0 |
PmmClearPSVI((xmlDocPtr)node); |
|
|
0 |
2 |
PmmClearPSVI((xmlDocPtr)node); |
|
7633
|
2 |
0 |
PmmInvalidatePSVI((xmlDocPtr)node); |
|
|
2 |
0 |
PmmInvalidatePSVI((xmlDocPtr)node); |
|
7636
|
0 |
3 |
if ( vctxt == NULL ) { |
|
7648
|
2 |
1 |
if (node->type == XML_DOCUMENT_NODE) { |
|
7659
|
0 |
2 |
if ( RETVAL > 0 ) { |
|
7662
|
0 |
2 |
if ( RETVAL == -1 ) { |
|
7683
|
26 |
4 |
if( items > 1 ) |
|
7690
|
0 |
30 |
if (ctxt->user == NULL) { |
|
7694
|
4 |
26 |
if (SvOK(pnode)) { |
|
|
4 |
0 |
if (SvOK(pnode)) { |
|
|
0 |
4 |
if (SvOK(pnode)) { |
|
7719
|
30 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7722
|
30 |
0 |
if (ctxt) { |
|
7723
|
30 |
0 |
if (XPathContextDATA(ctxt) != NULL) { |
|
7724
|
28 |
2 |
if (XPathContextDATA(ctxt)->node != NULL && |
|
|
1 |
27 |
if (XPathContextDATA(ctxt)->node != NULL && |
|
7725
|
1 |
0 |
SvOK(XPathContextDATA(ctxt)->node)) { |
|
|
0 |
1 |
SvOK(XPathContextDATA(ctxt)->node)) { |
|
7728
|
2 |
28 |
if (XPathContextDATA(ctxt)->varLookup != NULL && |
|
|
0 |
2 |
if (XPathContextDATA(ctxt)->varLookup != NULL && |
|
7729
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varLookup)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varLookup)) { |
|
7732
|
1 |
29 |
if (XPathContextDATA(ctxt)->varData != NULL && |
|
|
0 |
1 |
if (XPathContextDATA(ctxt)->varData != NULL && |
|
7733
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varData)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varData)) { |
|
7736
|
0 |
30 |
if (XPathContextDATA(ctxt)->pool != NULL && |
|
|
0 |
0 |
if (XPathContextDATA(ctxt)->pool != NULL && |
|
7737
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->pool)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->pool)) { |
|
7743
|
4 |
26 |
if (ctxt->namespaces != NULL) { |
|
7746
|
1 |
29 |
if (ctxt->funcLookupData != NULL && SvROK((SV*)ctxt->funcLookupData) |
|
|
1 |
0 |
if (ctxt->funcLookupData != NULL && SvROK((SV*)ctxt->funcLookupData) |
|
7747
|
1 |
0 |
&& SvTYPE(SvRV((SV *)ctxt->funcLookupData)) == SVt_PVHV) { |
|
7758
|
27 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7759
|
0 |
27 |
if ( ctxt == NULL ) { |
|
7763
|
14 |
13 |
if(XPathContextDATA(ctxt)->node != NULL) { |
|
7775
|
4 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7776
|
0 |
4 |
if ( ctxt == NULL ) { |
|
7788
|
5 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7789
|
0 |
5 |
if ( ctxt == NULL ) { |
|
7802
|
40 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7803
|
0 |
40 |
if ( ctxt == NULL ) { |
|
7807
|
27 |
13 |
if (XPathContextDATA(ctxt)->node != NULL) { |
|
7810
|
15 |
25 |
if (SvOK(pnode)) { |
|
|
15 |
0 |
if (SvOK(pnode)) { |
|
|
0 |
15 |
if (SvOK(pnode)) { |
|
7821
|
4 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7822
|
0 |
4 |
if ( ctxt == NULL ) |
|
7824
|
3 |
1 |
if ( position < -1 || position > ctxt->contextSize ) |
|
|
2 |
1 |
if ( position < -1 || position > ctxt->contextSize ) |
|
7834
|
4 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7835
|
0 |
4 |
if ( ctxt == NULL ) |
|
7837
|
1 |
3 |
if ( size < -1 ) |
|
7841
|
1 |
2 |
if ( size == 0 ) |
|
7843
|
1 |
1 |
else if ( size > 0 ) |
|
7856
|
11 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7857
|
0 |
11 |
if ( ctxt == NULL ) { |
|
7862
|
3 |
8 |
if(SvOK(ns_uri)) { |
|
|
3 |
0 |
if(SvOK(ns_uri)) { |
|
|
0 |
3 |
if(SvOK(ns_uri)) { |
|
7863
|
8 |
0 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), |
|
|
8 |
0 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), |
|
|
0 |
8 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), |
|
7868
|
3 |
0 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), NULL) == -1) { |
|
|
0 |
3 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), NULL) == -1) { |
|
7880
|
3 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7881
|
0 |
3 |
if ( ctxt == NULL ) { |
|
7886
|
3 |
0 |
RETVAL = C2Sv(xmlXPathNsLookup(ctxt, (xmlChar *) SvPV_nolen(prefix)), NULL); |
|
7894
|
6 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7895
|
0 |
6 |
if ( ctxt == NULL ) { |
|
7899
|
5 |
1 |
if(XPathContextDATA(ctxt)->varData != NULL) { |
|
7911
|
2 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7912
|
0 |
2 |
if ( ctxt == NULL ) { |
|
7916
|
1 |
1 |
if(XPathContextDATA(ctxt)->varData != NULL) { |
|
7933
|
4 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7934
|
0 |
4 |
if ( ctxt == NULL ) |
|
7937
|
0 |
4 |
if ( data == NULL ) |
|
7941
|
1 |
3 |
if (data->varLookup && SvOK(data->varLookup)) |
|
|
0 |
1 |
if (data->varLookup && SvOK(data->varLookup)) |
|
|
0 |
0 |
if (data->varLookup && SvOK(data->varLookup)) |
|
|
0 |
0 |
if (data->varLookup && SvOK(data->varLookup)) |
|
7943
|
1 |
3 |
if (data->varData && SvOK(data->varData)) |
|
|
0 |
1 |
if (data->varData && SvOK(data->varData)) |
|
|
0 |
0 |
if (data->varData && SvOK(data->varData)) |
|
|
0 |
0 |
if (data->varData && SvOK(data->varData)) |
|
7948
|
1 |
3 |
if (SvOK(lookup_func)) { |
|
|
1 |
0 |
if (SvOK(lookup_func)) { |
|
|
0 |
1 |
if (SvOK(lookup_func)) { |
|
7949
|
3 |
0 |
if ( SvROK(lookup_func) && SvTYPE(SvRV(lookup_func)) == SVt_PVCV ) { |
|
|
3 |
0 |
if ( SvROK(lookup_func) && SvTYPE(SvRV(lookup_func)) == SVt_PVCV ) { |
|
7951
|
1 |
2 |
if (SvOK(lookup_data)) |
|
|
1 |
0 |
if (SvOK(lookup_data)) |
|
|
0 |
1 |
if (SvOK(lookup_data)) |
|
7955
|
3 |
0 |
if (ctxt->varLookupData==NULL || ctxt->varLookupData != ctxt) { |
|
|
0 |
3 |
if (ctxt->varLookupData==NULL || ctxt->varLookupData != ctxt) { |
|
7980
|
14 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7981
|
0 |
14 |
if ( ctxt == NULL ) { |
|
7985
|
3 |
11 |
if ( !SvOK(func) || |
|
|
3 |
0 |
if ( !SvOK(func) || |
|
|
0 |
3 |
if ( !SvOK(func) || |
|
|
0 |
11 |
if ( !SvOK(func) || |
|
7986
|
0 |
0 |
(SvOK(func) && ((SvROK(func) && SvTYPE(SvRV(func)) == SVt_PVCV ) |
|
|
0 |
0 |
(SvOK(func) && ((SvROK(func) && SvTYPE(SvRV(func)) == SVt_PVCV ) |
|
|
10 |
1 |
(SvOK(func) && ((SvROK(func) && SvTYPE(SvRV(func)) == SVt_PVCV ) |
|
|
0 |
10 |
(SvOK(func) && ((SvROK(func) && SvTYPE(SvRV(func)) == SVt_PVCV ) |
|
7987
|
1 |
0 |
|| SvPOK(func)))) { |
|
7988
|
1 |
13 |
if (ctxt->funcLookupData == NULL) { |
|
7989
|
0 |
1 |
if (SvOK(func)) { |
|
|
0 |
0 |
if (SvOK(func)) { |
|
|
0 |
0 |
if (SvOK(func)) { |
|
7999
|
13 |
0 |
if (SvTYPE(SvRV((SV *)ctxt->funcLookupData)) == SVt_PVHV) { |
|
8007
|
12 |
2 |
if (SvOK(uri)) { |
|
|
12 |
0 |
if (SvOK(uri)) { |
|
|
0 |
12 |
if (SvOK(uri)) { |
|
8013
|
14 |
0 |
strkey = SvPV(key, len); |
|
8015
|
3 |
11 |
if (SvOK(func)) { |
|
|
3 |
0 |
if (SvOK(func)) { |
|
|
0 |
3 |
if (SvOK(func)) { |
|
8026
|
12 |
2 |
if (SvOK(uri)) { |
|
|
12 |
0 |
if (SvOK(uri)) { |
|
|
0 |
12 |
if (SvOK(uri)) { |
|
8027
|
1 |
1 |
xmlXPathRegisterFuncNS(ctxt, (xmlChar *) name, |
|
|
2 |
0 |
xmlXPathRegisterFuncNS(ctxt, (xmlChar *) name, |
|
8029
|
1 |
0 |
(SvOK(func) ? |
|
|
0 |
1 |
(SvOK(func) ? |
|
8032
|
2 |
10 |
xmlXPathRegisterFunc(ctxt, (xmlChar *) name, |
|
8033
|
2 |
0 |
(SvOK(func) ? |
|
|
0 |
2 |
(SvOK(func) ? |
|
8043
|
130 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
8044
|
0 |
130 |
if ( ctxt == NULL ) { |
|
8048
|
20 |
110 |
if (XPathContextDATA(ctxt)->pool != NULL) { |
|
8067
|
61 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
8068
|
0 |
61 |
if ( ctxt == NULL ) { |
|
8072
|
0 |
61 |
if ( ctxt->node == NULL ) { |
|
8075
|
4 |
57 |
if (sv_isobject(perl_xpath) && sv_isa(perl_xpath,"XML::LibXML::XPathExpression")) { |
|
|
4 |
0 |
if (sv_isobject(perl_xpath) && sv_isa(perl_xpath,"XML::LibXML::XPathExpression")) { |
|
8076
|
4 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( perl_xpath ))); |
|
8077
|
0 |
4 |
if (!comp) XSRETURN_UNDEF; |
|
8080
|
57 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
57 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
8081
|
0 |
0 |
if ( xpath ) |
|
8091
|
4 |
57 |
if (comp) { |
|
8099
|
59 |
2 |
if (found != NULL) { |
|
8105
|
59 |
2 |
if ( nodelist ) { |
|
8107
|
59 |
0 |
if ( nodelist->nodeNr > 0 ) { |
|
8112
|
3076 |
59 |
for( i = 0 ; i < l; i++){ |
|
8119
|
0 |
3076 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
8121
|
0 |
0 |
if ( newns != NULL ) { |
|
8134
|
3073 |
3 |
if (tnode->doc) { |
|
8135
|
3073 |
0 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
|
0 |
3073 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
8139
|
5 |
0 |
while (n && n->_private == NULL) n = n->parent; |
|
|
2 |
3 |
while (n && n->_private == NULL) n = n->parent; |
|
8140
|
3 |
0 |
if (n) owner = PmmOWNERPO(((ProxyNodePtr)n->_private)); |
|
|
3 |
0 |
if (n) owner = PmmOWNERPO(((ProxyNodePtr)n->_private)); |
|
|
3 |
0 |
if (n) owner = PmmOWNERPO(((ProxyNodePtr)n->_private)); |
|
8145
|
0 |
3076 |
XPUSHs( sv_2mortal(element) ); |
|
8149
|
0 |
59 |
if (found->boolval) found->boolval=0; |
|
8171
|
69 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
8172
|
0 |
69 |
if ( ctxt == NULL ) { |
|
8176
|
1 |
68 |
if ( ctxt->node == NULL ) { |
|
8179
|
3 |
65 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
|
3 |
0 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
8180
|
3 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( pxpath ))); |
|
8181
|
0 |
3 |
if (!comp) XSRETURN_UNDEF; |
|
8184
|
65 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
65 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
8185
|
0 |
0 |
if ( xpath ) |
|
8194
|
3 |
65 |
if (comp) { |
|
8202
|
59 |
8 |
if (found) { |
|
8208
|
0 |
10 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::NodeList", 0))); |
|
8210
|
10 |
0 |
if ( nodelist ) { |
|
8211
|
10 |
0 |
if ( nodelist->nodeNr > 0 ) { |
|
8218
|
6011 |
10 |
for( i = 0 ; i < l; i++){ |
|
8228
|
0 |
6011 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
8230
|
0 |
0 |
if ( newns != NULL ) { |
|
8243
|
6011 |
0 |
if (tnode->doc) { |
|
8244
|
6011 |
0 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
|
0 |
6011 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
8248
|
0 |
0 |
while (n && n->_private == NULL) n = n->parent; |
|
|
0 |
0 |
while (n && n->_private == NULL) n = n->parent; |
|
8249
|
0 |
0 |
if (n) owner = PmmOWNERPO(((ProxyNodePtr)n->_private)); |
|
|
0 |
0 |
if (n) owner = PmmOWNERPO(((ProxyNodePtr)n->_private)); |
|
|
0 |
0 |
if (n) owner = PmmOWNERPO(((ProxyNodePtr)n->_private)); |
|
8254
|
0 |
6011 |
XPUSHs( sv_2mortal(element) ); |
|
8259
|
0 |
10 |
if (found->boolval) found->boolval=0; |
|
8264
|
0 |
14 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Boolean", 0))); |
|
8265
|
0 |
14 |
XPUSHs(sv_2mortal(newSViv(found->boolval))); |
|
8270
|
0 |
24 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Number", 0))); |
|
8271
|
0 |
24 |
XPUSHs(sv_2mortal(newSVnv(found->floatval))); |
|
8276
|
0 |
11 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Literal", 0))); |
|
8277
|
0 |
11 |
XPUSHs(sv_2mortal(C2Sv(found->stringval, NULL))); |
|
8345
|
8 |
0 |
if (encoding == NULL && SvUTF8( string )) { |
|
|
2 |
6 |
if (encoding == NULL && SvUTF8( string )) { |
|
8348
|
8 |
0 |
RETVAL = xmlReaderForDoc((xmlChar* )SvPV_nolen(string), url, encoding, options); |
|
8371
|
1 |
0 |
PmmREFCNT_inc(SvPROXYNODE(perl_doc)); /* _dec in DESTROY */ |
|
8603
|
0 |
0 |
if (xmlTextReaderHasAttributes(reader) && xmlTextReaderMoveToFirstAttribute(reader)==1) { |
|
|
0 |
0 |
if (xmlTextReaderHasAttributes(reader) && xmlTextReaderMoveToFirstAttribute(reader)==1) { |
|
8607
|
0 |
0 |
if (sv && hv_store(hv, (const char*) name, xmlStrlen(name), sv, 0)==NULL) { |
|
|
0 |
0 |
if (sv && hv_store(hv, (const char*) name, xmlStrlen(name), sv, 0)==NULL) { |
|
8610
|
0 |
0 |
} while (xmlTextReaderMoveToNextAttribute(reader)==1); |
|
8757
|
2 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
10 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
8 |
2 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
2 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
0 |
2 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
2 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
8773
|
6 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
10 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
4 |
6 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
6 |
0 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
0 |
6 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
|
1 |
5 |
LIBXML_READER_NEXT_SIBLING(RETVAL,reader) |
|
8774
|
3 |
3 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
3 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
3 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
3 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
1 |
2 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
1 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
1 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
8777
|
5 |
0 |
} while (RETVAL == 1); |
|
8794
|
6 |
4 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
6 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
1 |
5 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
1 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
1 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
|
0 |
0 |
if (LIBXML_READER_TEST_ELEMENT(reader,name,nsURI)) { |
|
8797
|
4 |
0 |
} while (RETVAL == 1); |
|
8811
|
0 |
5 |
if ( compiled == NULL ) |
|
8816
|
41 |
1 |
if (node && xmlPatternMatch(compiled, node)) { |
|
|
4 |
37 |
if (node && xmlPatternMatch(compiled, node)) { |
|
8819
|
37 |
1 |
} while (RETVAL == 1); |
|
8836
|
1 |
0 |
if (depth > 0) { |
|
8839
|
3 |
0 |
} while (RETVAL == 1 && xmlTextReaderDepth(reader) >= depth); |
|
|
2 |
1 |
} while (RETVAL == 1 && xmlTextReaderDepth(reader) >= depth); |
|
8840
|
0 |
1 |
if (xmlTextReaderNodeType(reader) != XML_READER_TYPE_END_ELEMENT) { |
|
8864
|
0 |
0 |
if (ret == -1) XSRETURN_UNDEF; |
|
8908
|
0 |
1 |
if (!result) XSRETURN_UNDEF; |
|
8926
|
3 |
0 |
if (result) { |
|
8969
|
0 |
8 |
if ( node ==NULL ) { |
|
8973
|
0 |
8 |
if ( path == NULL ) { |
|
8990
|
0 |
41 |
if ( compiled == NULL ) |
|
8993
|
0 |
41 |
if ( node ==NULL ) { |
|
9015
|
1 |
1 |
if (expand) { |
|
9021
|
2 |
0 |
if (node) { |
|
9024
|
0 |
2 |
if (!doc) { |
|
9029
|
0 |
2 |
if (xmlTextReaderGetParserProp(reader,XML_PARSER_VALIDATE)) |
|
9030
|
0 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
|
0 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
9033
|
0 |
2 |
if ( copy == NULL ) { |
|
9038
|
0 |
2 |
if ( copy->type == XML_DTD_NODE ) { |
|
9044
|
2 |
0 |
if ( doc != NULL ) { |
|
9048
|
1 |
1 |
if (PmmREFCNT(proxy) == 0) { |
|
9069
|
0 |
3 |
if (!doc) XSRETURN_UNDEF; |
|
9072
|
3 |
0 |
if ( PmmREFCNT(SvPROXYNODE(RETVAL))==1 ) { |
|
|
0 |
3 |
if ( PmmREFCNT(SvPROXYNODE(RETVAL))==1 ) { |
|
9074
|
0 |
0 |
PmmREFCNT_inc(SvPROXYNODE(RETVAL)); |
|
9076
|
2 |
1 |
if (xmlTextReaderGetParserProp(reader,XML_PARSER_VALIDATE)) |
|
9077
|
2 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
|
2 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
9094
|
1 |
1 |
if (ns_map) { |
|
9096
|
0 |
1 |
New(0,namespaces, last+2, xmlChar*); |
|
9097
|
2 |
1 |
for( i = 0; i <= last ; i++ ) { |
|
9099
|
2 |
0 |
namespaces[i]=(xmlChar*) SvPV_nolen(*aux); |
|
9120
|
0 |
1 |
if (!doc) { |
|
9126
|
0 |
1 |
if ( PmmREFCNT(proxy) == 0 ) { |
|
9135
|
1 |
0 |
if (node) { |
|
9152
|
10 |
92 |
if (RETVAL!=1) break; |
|
9210
|
2 |
18 |
if ( LibXML_get_reader_preserve_flag(reader) ) { |
|
9212
|
2 |
0 |
if (doc) { |
|
9214
|
0 |
2 |
if ( PmmREFCNT(proxy) == 0 ) { |
|
9220
|
19 |
1 |
if (xmlTextReaderReadState(reader) != XML_TEXTREADER_MODE_CLOSED) { |
|
9342
|
385 |
2193 |
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || |
|
|
84 |
301 |
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || |
|
|
82 |
2 |
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || |
|
9343
|
81 |
1 |
(domain == XML_FROM_DTD) || (domain == XML_FROM_NAMESPACE) || |
|
|
75 |
6 |
(domain == XML_FROM_DTD) || (domain == XML_FROM_NAMESPACE) || |
|
9344
|
16 |
59 |
(domain == XML_FROM_IO) || (domain == XML_FROM_VALID)) { |
|
9347
|
65 |
2513 |
if (ctxt == NULL) XSRETURN_EMPTY; |
|
9349
|
2511 |
2 |
if ((input != NULL) && (input->filename == NULL) && |
|
|
332 |
2179 |
if ((input != NULL) && (input->filename == NULL) && |
|
|
0 |
332 |
if ((input != NULL) && (input->filename == NULL) && |
|
9353
|
2 |
2511 |
if (input == NULL) XSRETURN_EMPTY; |
|
9357
|
2526 |
4 |
while ((cur > base) && ((*(cur) == '\n') || (*(cur) == '\r'))) { |
|
|
19 |
2507 |
while ((cur > base) && ((*(cur) == '\n') || (*(cur) == '\r'))) { |
|
|
0 |
2507 |
while ((cur > base) && ((*(cur) == '\n') || (*(cur) == '\r'))) { |
|
9362
|
108940 |
543 |
while ((n++ < (sizeof(content)-1)) && (cur > base) && |
|
|
108811 |
129 |
while ((n++ < (sizeof(content)-1)) && (cur > base) && |
|
|
106973 |
1838 |
while ((n++ < (sizeof(content)-1)) && (cur > base) && |
|
9363
|
106972 |
1 |
(*(cur) != '\n') && (*(cur) != '\r')) |
|
9368
|
1297335 |
147 |
while ((col_cur > base) && (*(col_cur) != '\n') && (*(col_cur) != '\r')) |
|
|
1294973 |
2362 |
while ((col_cur > base) && (*(col_cur) != '\n') && (*(col_cur) != '\r')) |
|
|
1294971 |
2 |
while ((col_cur > base) && (*(col_cur) != '\n') && (*(col_cur) != '\r')) |
|
9370
|
631 |
1880 |
if ((*(cur) == '\n') || (*(cur) == '\r')) cur++; |
|
|
1 |
630 |
if ((*(cur) == '\n') || (*(cur) == '\r')) cur++; |
|
9371
|
140 |
2371 |
if ((*(col_cur) == '\n') || (*(col_cur) == '\r')) col_cur++; |
|
|
2 |
138 |
if ((*(col_cur) == '\n') || (*(col_cur) == '\r')) col_cur++; |
|
9378
|
187036 |
151 |
while ((*cur != 0) && (*(cur) != '\n') && |
|
|
186575 |
461 |
while ((*cur != 0) && (*(cur) != '\n') && |
|
|
186575 |
0 |
while ((*cur != 0) && (*(cur) != '\n') && |
|
9379
|
184676 |
1899 |
(*(cur) != '\r') && (n < sizeof(content)-1)) { |
|
9384
|
0 |
2511 |
EXTEND(SP,2); |
|
9407
|
0 |
1 |
if ( pattern == NULL ) |
|
9409
|
1 |
0 |
if (ns_map) { |
|
9411
|
0 |
1 |
New(0,namespaces, last+2, xmlChar*); |
|
9412
|
2 |
1 |
for( i = 0; i <= last ; i++ ) { |
|
9414
|
2 |
0 |
namespaces[i]=(xmlChar*) SvPV_nolen(*aux); |
|
9424
|
0 |
1 |
if ( RETVAL == NULL ) { |
|
9435
|
0 |
34 |
if ( node ==NULL ) { |
|
9462
|
0 |
3 |
if ( regexp == NULL ) |
|
9469
|
0 |
2 |
if ( RETVAL == NULL ) { |
|
9482
|
0 |
8 |
if ( value == NULL ) |
|
9516
|
0 |
10 |
if ( pxpath == NULL ) |
|
9523
|
0 |
10 |
if ( RETVAL == NULL ) { |
|
9553
|
1 |
16 |
if (!SvOK(string)) { |
|
|
1 |
0 |
if (!SvOK(string)) { |
|
|
1 |
0 |
if (!SvOK(string)) { |
|
9555
|
1 |
15 |
} else if (!SvCUR(string)) { |
|
9558
|
15 |
0 |
realstring = (xmlChar*) SvPV(string, len); |
|
9559
|
15 |
0 |
if ( realstring != NULL ) { |
|
9562
|
0 |
15 |
if ( !DO_UTF8(string) && encoding != NULL ) { |
|
|
0 |
0 |
if ( !DO_UTF8(string) && encoding != NULL ) { |
|
|
15 |
0 |
if ( !DO_UTF8(string) && encoding != NULL ) { |
|
9568
|
0 |
15 |
if ( enc == 0 ) { |
|
9573
|
4 |
11 |
if ( enc == XML_CHAR_ENCODING_UTF8 ) { |
|
9580
|
10 |
1 |
if ( enc > 1 ) { |
|
9583
|
1 |
0 |
else if ( enc == XML_CHAR_ENCODING_ERROR ){ |
|
9589
|
1 |
10 |
if ( coder == NULL ) { |
|
9594
|
10 |
0 |
if ( xmlCharEncInFunc( coder, out, in ) >= 0 ) { |
|
9610
|
0 |
14 |
if ( !tstr ) { |
|
9641
|
1 |
8 |
if ( !SvOK(string) ) { |
|
|
1 |
0 |
if ( !SvOK(string) ) { |
|
|
1 |
0 |
if ( !SvOK(string) ) { |
|
9643
|
1 |
7 |
} else if (!SvCUR(string)) { |
|
9645
|
0 |
7 |
} else if ( !SvUTF8(string) ) { |
|
9649
|
7 |
0 |
realstring = (xmlChar*) SvPV(string, len); |
|
9650
|
7 |
0 |
if ( realstring != NULL ) { |
|
9653
|
0 |
7 |
if ( enc == 0 ) { |
|
9658
|
1 |
6 |
if ( enc == XML_CHAR_ENCODING_UTF8 ) { |
|
9666
|
4 |
2 |
if ( enc > 1 ) { |
|
9669
|
2 |
0 |
else if ( enc == XML_CHAR_ENCODING_ERROR ){ |
|
9676
|
0 |
6 |
if ( coder == NULL ) { |
|
9683
|
6 |
0 |
if ( xmlCharEncOutFunc( coder, out, in ) >= 0 ) { |
|
9693
|
0 |
6 |
if ( !tstr ) { |
|
9701
|
1 |
6 |
if ( enc == XML_CHAR_ENCODING_UTF8 ) { |