| line |
true |
false |
branch |
|
208
|
0 |
464 |
if ( saved_error == NULL ) { |
|
214
|
0 |
464 |
PUSHMARK(SP); |
|
216
|
0 |
464 |
XPUSHs(sv_2mortal(libErr)); |
|
217
|
464 |
0 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
|
164 |
300 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
|
164 |
0 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
|
0 |
164 |
if ( saved_error != NULL && SvOK(saved_error) ) { |
|
218
|
0 |
300 |
XPUSHs(saved_error); |
|
222
|
464 |
0 |
if ( saved_error != NULL ) { |
|
229
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
464 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
464 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
464 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
464 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
|
0 |
464 |
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
|
464 |
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
|
1622 |
0 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
|
1462 |
160 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
|
1462 |
0 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
|
0 |
1462 |
if( saved_error!=NULL && SvOK( saved_error ) ) { |
|
364
|
7 |
153 |
if (!recover || recover==1) { |
|
|
3 |
4 |
if (!recover || recover==1) { |
|
370
|
0 |
156 |
PUSHMARK(SP); |
|
371
|
0 |
156 |
EXTEND(SP, 1); |
|
374
|
3 |
153 |
if (recover==1) { |
|
382
|
0 |
3 |
FREETMPS; |
|
477
|
69 |
836 |
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
|
1010 |
0 |
if ( self != NULL ) { |
|
922
|
1010 |
0 |
if (item != NULL && SvOK(*item)) parserOptions = sv_2iv(*item); |
|
|
0 |
1010 |
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
|
882 |
128 |
if ((parserOptions & XML_PARSE_DTDLOAD) == 0) { |
|
931
|
542 |
468 |
if (ctxt) xmlCtxtUseOptions(ctxt, parserOptions ); /* Note: sets ctxt->linenumbers = 1 */ |
|
941
|
61 |
949 |
if (parserOptions & XML_PARSE_NOBLANKS) { |
|
949
|
75 |
935 |
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
|
540 |
468 |
if (ctxt) ctxt->linenumbers = 0; |
|
956
|
1009 |
1 |
if(EXTERNAL_ENTITY_LOADER_FUNC == NULL) |
|
959
|
74 |
935 |
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 |
1005 |
if (parserOptions & XML_PARSE_NONET) |
|
983
|
1007 |
1 |
if (EXTERNAL_ENTITY_LOADER_FUNC == NULL && LibXML_old_ext_ent_loader != NULL) |
|
|
4 |
1003 |
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 |
42 |
if ( with_sax == 1 ) { |
|
2580
|
0 |
300 |
if ( ctxt == NULL ) { |
|
2584
|
0 |
300 |
if ( data == &PL_sv_undef ) { |
|
2587
|
300 |
0 |
chunk = SvPV( data, len ); |
|
2588
|
0 |
300 |
if ( len <= 0 ) { |
|
2604
|
6 |
293 |
if ( ctxt->wellFormed == 0 ) { |
|
2625
|
0 |
41 |
if ( ctxt == NULL ) { |
|
2641
|
41 |
0 |
PmmNODE( SvPROXYNODE( pctxt ) ) = NULL; |
|
2643
|
41 |
0 |
if ( real_doc != NULL ) { |
|
2644
|
40 |
1 |
if ( restore || well_formed ) { |
|
|
38 |
2 |
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
|
78 |
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 ) { |
|
4033
|
3 |
0 |
PmmClearPSVI(self); |
|
|
3 |
0 |
PmmClearPSVI(self); |
|
|
3 |
0 |
PmmClearPSVI(self); |
|
|
1 |
2 |
PmmClearPSVI(self); |
|
4034
|
3 |
0 |
PmmInvalidatePSVI(self); |
|
|
3 |
0 |
PmmInvalidatePSVI(self); |
|
4035
|
2 |
1 |
if (items > 1) { |
|
4037
|
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) ) { |
|
4066
|
5 |
0 |
PmmClearPSVI(self); |
|
|
5 |
0 |
PmmClearPSVI(self); |
|
|
5 |
0 |
PmmClearPSVI(self); |
|
|
3 |
2 |
PmmClearPSVI(self); |
|
4067
|
5 |
0 |
PmmInvalidatePSVI(self); |
|
|
5 |
0 |
PmmInvalidatePSVI(self); |
|
4069
|
2 |
3 |
if (items > 1) { |
|
4071
|
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) ) { |
|
4096
|
0 |
2 |
if ( ret == NULL ) { |
|
4114
|
22 |
0 |
if ( id != NULL ) { |
|
4116
|
5 |
17 |
if (attr == NULL) |
|
4118
|
17 |
0 |
else if (attr->type == XML_ATTRIBUTE_NODE) |
|
4120
|
0 |
0 |
else if (attr->type == XML_ELEMENT_NODE) |
|
4124
|
17 |
5 |
if (elem != NULL) { |
|
4186
|
20452 |
0 |
PmmREFCNT_dec(SvPROXYNODE(node)); |
|
4203
|
253 |
0 |
if ( name != NULL ) { |
|
4222
|
55 |
71 |
if ( self->type == XML_ELEMENT_NODE |
|
4223
|
0 |
55 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4224
|
0 |
0 |
|| self->type == XML_ELEMENT_DECL |
|
4225
|
0 |
0 |
|| self->type == XML_ATTRIBUTE_DECL ) { |
|
4241
|
14 |
44 |
if( ( self->type == XML_ELEMENT_NODE |
|
4242
|
0 |
14 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4243
|
0 |
0 |
|| self->type == XML_PI_NODE ) |
|
4244
|
11 |
47 |
&& self->ns != NULL |
|
4245
|
6 |
5 |
&& self->ns->prefix != NULL ) { |
|
4263
|
26 |
51 |
if ( ( self->type == XML_ELEMENT_NODE |
|
4264
|
0 |
26 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4265
|
0 |
0 |
|| self->type == XML_PI_NODE ) |
|
4266
|
25 |
52 |
&& self->ns != NULL |
|
4267
|
25 |
0 |
&& self->ns->href != NULL ) { |
|
4289
|
22 |
1 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
|
5 |
17 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
4294
|
17 |
6 |
if ( prefix != NULL) { |
|
4297
|
16 |
7 |
if ( ns != NULL ) { |
|
4317
|
7 |
0 |
if ( href != NULL && xmlStrlen(href) > 0) { |
|
|
7 |
0 |
if ( href != NULL && xmlStrlen(href) > 0) { |
|
4320
|
4 |
3 |
if ( ns != NULL ) { |
|
4321
|
3 |
1 |
if ( ns->prefix != NULL ) { |
|
4353
|
4 |
7 |
if ( !LibXML_test_node_name( string ) ) { |
|
4357
|
2 |
5 |
if( ( self->type == XML_ELEMENT_NODE |
|
4358
|
0 |
2 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4359
|
0 |
0 |
|| self->type == XML_PI_NODE) |
|
4360
|
5 |
2 |
&& self->ns ){ |
|
4362
|
3 |
2 |
if ( localname == NULL ) { |
|
4385
|
0 |
0 |
if ( !string || xmlStrlen( string) <= 0 ) { |
|
|
0 |
0 |
if ( !string || xmlStrlen( string) <= 0 ) { |
|
4389
|
0 |
0 |
if( ( self->type == XML_ELEMENT_NODE |
|
4390
|
0 |
0 |
|| self->type == XML_ATTRIBUTE_NODE |
|
4391
|
0 |
0 |
|| self->type == XML_PI_NODE) |
|
4392
|
0 |
0 |
&& self->ns ){ |
|
4420
|
169 |
2 |
if ( content != NULL ) { |
|
4421
|
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) ) { |
|
4455
|
158 |
0 |
RETVAL = PmmNodeToSv( self->parent, |
|
4456
|
158 |
0 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4467
|
15 |
0 |
RETVAL = PmmNodeToSv( self->next, |
|
4468
|
15 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4479
|
26 |
2 |
while (next != NULL && xmlIsBlankNode(next)) |
|
|
14 |
12 |
while (next != NULL && xmlIsBlankNode(next)) |
|
4481
|
14 |
0 |
RETVAL = PmmNodeToSv( next, |
|
4482
|
14 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4494
|
4 |
0 |
RETVAL = PmmNodeToSv( self->prev, |
|
4495
|
4 |
0 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4506
|
28 |
2 |
while (prev != NULL && xmlIsBlankNode(prev)) |
|
|
16 |
12 |
while (prev != NULL && xmlIsBlankNode(prev)) |
|
4508
|
14 |
0 |
RETVAL = PmmNodeToSv( prev, |
|
4509
|
14 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4524
|
165 |
0 |
int wantarray = GIMME_V; |
|
4527
|
165 |
0 |
if ( self->type != XML_ATTRIBUTE_NODE ) { |
|
4530
|
455 |
165 |
while ( cld ) { |
|
4531
|
30 |
425 |
if ( !(only_nonblank && xmlIsBlankNode(cld)) ) { |
|
|
14 |
16 |
if ( !(only_nonblank && xmlIsBlankNode(cld)) ) { |
|
4532
|
439 |
0 |
if( wantarray != G_SCALAR ) { |
|
4533
|
439 |
0 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
|
315 |
124 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4534
|
0 |
439 |
XPUSHs(sv_2mortal(element)); |
|
4541
|
0 |
165 |
if ( wantarray == G_SCALAR ) { |
|
4542
|
0 |
0 |
XPUSHs(sv_2mortal(newSViv(len)) ); |
|
4558
|
12 |
0 |
int wantarray = GIMME_V; |
|
4563
|
12 |
0 |
if ( nsURI != NULL ) { |
|
4564
|
0 |
12 |
if (xmlStrlen(nsURI) == 0 ) { |
|
4567
|
9 |
3 |
} else if (xmlStrcmp( nsURI, (xmlChar *)"*" )==0) { |
|
4571
|
12 |
0 |
if ( name !=NULL && xmlStrcmp( name, (xmlChar *)"*" ) == 0) { |
|
|
6 |
6 |
if ( name !=NULL && xmlStrcmp( name, (xmlChar *)"*" ) == 0) { |
|
4574
|
12 |
0 |
if ( self->type != XML_ATTRIBUTE_NODE ) { |
|
4577
|
36 |
12 |
while ( cld ) { |
|
4578
|
18 |
18 |
if (((name_wildcard && (cld->type == XML_ELEMENT_NODE)) || |
|
4580
|
6 |
18 |
&& (ns_wildcard || |
|
|
3 |
3 |
&& (ns_wildcard || |
|
4581
|
0 |
3 |
(cld->ns != NULL && |
|
4582
|
3 |
0 |
xmlStrcmp(nsURI,cld->ns->href) == 0 ) || |
|
4583
|
0 |
3 |
(cld->ns == NULL && nsURI == NULL))) { |
|
4584
|
21 |
0 |
if( wantarray != G_SCALAR ) { |
|
4585
|
21 |
0 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
|
21 |
0 |
element = PmmNodeToSv(cld, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4586
|
0 |
21 |
XPUSHs(sv_2mortal(element)); |
|
4593
|
0 |
12 |
if ( wantarray == G_SCALAR ) { |
|
4594
|
0 |
0 |
XPUSHs(sv_2mortal(newSViv(len)) ); |
|
4597
|
12 |
0 |
if (nsURI) xmlFree(nsURI); |
|
4606
|
51 |
0 |
RETVAL = PmmNodeToSv( self->children, |
|
4607
|
20 |
31 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4618
|
4 |
0 |
while (child !=NULL && xmlIsBlankNode(child)) |
|
|
2 |
2 |
while (child !=NULL && xmlIsBlankNode(child)) |
|
4620
|
2 |
0 |
RETVAL = PmmNodeToSv( child, |
|
4621
|
2 |
0 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4632
|
28 |
0 |
RETVAL = PmmNodeToSv( self->last, |
|
4633
|
3 |
25 |
PmmOWNERPO( PmmPROXYNODE(self) ) ); |
|
4647
|
51 |
0 |
int wantarray = GIMME_V; |
|
4650
|
51 |
0 |
if ( self->type != XML_ATTRIBUTE_NODE |
|
4651
|
50 |
1 |
&& self->type != XML_DTD_NODE ) { |
|
4653
|
33 |
50 |
while ( attr != NULL ) { |
|
4654
|
33 |
0 |
if ( wantarray != G_SCALAR ) { |
|
4655
|
33 |
0 |
element = PmmNodeToSv((xmlNodePtr)attr, |
|
4656
|
33 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4657
|
0 |
33 |
XPUSHs(sv_2mortal(element)); |
|
4662
|
50 |
0 |
if (self->type == XML_ELEMENT_NODE) { |
|
4664
|
14 |
50 |
while ( ns != NULL ) { |
|
4666
|
14 |
0 |
if ( wantarray != G_SCALAR ) { |
|
4677
|
2 |
12 |
if ((ns->prefix != NULL || ns->href != NULL)) { |
|
|
2 |
0 |
if ((ns->prefix != NULL || ns->href != NULL)) { |
|
4679
|
14 |
0 |
if ( tns != NULL ) { |
|
4681
|
0 |
14 |
XPUSHs(sv_setref_pv( element, |
|
4692
|
0 |
51 |
if( wantarray == G_SCALAR ) { |
|
4693
|
0 |
0 |
XPUSHs( sv_2mortal(newSViv(len)) ); |
|
4700
|
2 |
123 |
if ( self->type == XML_ATTRIBUTE_NODE ) { |
|
4713
|
2 |
0 |
if ( self->type == XML_ATTRIBUTE_NODE |
|
4714
|
1 |
1 |
|| self->type == XML_DTD_NODE ) { |
|
4731
|
19 |
0 |
if( self != NULL |
|
4732
|
17 |
2 |
&& self->doc != NULL ){ |
|
4749
|
0 |
0 |
RETVAL = PmmNodeToSv(PmmNODE(PmmOWNERPO(PmmPROXYNODE(self))), NULL); |
|
|
0 |
0 |
RETVAL = PmmNodeToSv(PmmNODE(PmmOWNERPO(PmmPROXYNODE(self))), NULL); |
|
4772
|
8 |
0 |
if ( rNode != NULL ) { |
|
4773
|
8 |
0 |
RETVAL = PmmNodeToSv( rNode, |
|
4774
|
5 |
3 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4775
|
2 |
6 |
if (rNode->type == XML_DTD_NODE) { |
|
4778
|
8 |
0 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
|
5 |
3 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
4797
|
6 |
0 |
if ( rNode != NULL ) { |
|
4798
|
6 |
0 |
RETVAL = PmmNodeToSv( rNode, |
|
4799
|
3 |
3 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4800
|
2 |
4 |
if (rNode->type == XML_DTD_NODE) { |
|
4803
|
6 |
0 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
|
3 |
3 |
PmmFixOwner(PmmPROXYNODE(rNode), PmmOWNERPO(PmmPROXYNODE(self))); |
|
4820
|
5 |
0 |
if (nNode == oNode || self == nNode ) { |
|
|
0 |
5 |
if (nNode == oNode || self == nNode ) { |
|
4822
|
0 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
|
0 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
4825
|
2 |
3 |
if ( self->type == XML_DOCUMENT_NODE ) { |
|
4845
|
0 |
5 |
if (ret == NULL) { |
|
4850
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
4851
|
2 |
3 |
if (nNode->type == XML_DTD_NODE) { |
|
4854
|
5 |
0 |
if ( nNode->_private != NULL ) { |
|
4855
|
5 |
0 |
PmmFixOwner( PmmPROXYNODE(nNode), |
|
4856
|
3 |
2 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
4871
|
0 |
5 |
if ( domIsParent( self, nNode ) == 1 ) { |
|
4874
|
5 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
|
5 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
4876
|
4 |
1 |
if ( self->type != XML_ATTRIBUTE_NODE ) { |
|
4882
|
5 |
0 |
if ( ret ) { |
|
4884
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
|
5 |
0 |
RETVAL = PmmNodeToSv(ret, PmmOWNERPO(PmmPROXYNODE(ret))); |
|
4885
|
3 |
2 |
if (nNode->type == XML_DTD_NODE) { |
|
4888
|
5 |
0 |
if ( nNode->_private != NULL ) { |
|
4907
|
1 |
14 |
if (ret == NULL) { |
|
4927
|
4 |
2 |
while ( elem ) { |
|
4930
|
4 |
0 |
if (elem->type == XML_ATTRIBUTE_NODE |
|
4931
|
1 |
3 |
|| elem->type == XML_DTD_NODE) { |
|
4932
|
0 |
1 |
if (PmmPROXYNODE(elem) == NULL) { |
|
4941
|
1 |
2 |
if ( fragment->children != NULL ) { |
|
4956
|
2 |
0 |
if ( PmmREFCNT(docfrag) <= 0 ) { |
|
4972
|
10 |
0 |
if ( self->type != XML_DOCUMENT_NODE |
|
4973
|
10 |
0 |
&& self->type != XML_DOCUMENT_FRAG_NODE ) { |
|
4985
|
3 |
58 |
if (self->type == XML_DOCUMENT_NODE ) { |
|
5009
|
0 |
59 |
if ( rNode == NULL ) { |
|
5013
|
59 |
0 |
RETVAL = PmmNodeToSv( nNode, |
|
5014
|
55 |
4 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
5015
|
1 |
58 |
if (nNode->type == XML_DTD_NODE) { |
|
5018
|
59 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), PmmPROXYNODE(self) ); |
|
5056
|
0 |
39 |
if ( retval == NULL ) { |
|
5060
|
1 |
38 |
if ( retval != nNode ) { |
|
5065
|
39 |
0 |
RETVAL = PmmNodeToSv( retval, |
|
5066
|
20 |
19 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
5067
|
38 |
1 |
if ( retval != self ) { |
|
5068
|
38 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), PmmPROXYNODE(self) ); |
|
5082
|
0 |
6 |
if ( nNode->type == XML_DOCUMENT_FRAG_NODE ) { |
|
5086
|
6 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
|
6 |
0 |
owner = PmmOWNERPO(PmmPROXYNODE(self)); |
|
5088
|
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 |
|
5089
|
1 |
0 |
&& self->name == nNode->name) { |
|
5094
|
1 |
0 |
if (ret) { |
|
5108
|
5 |
0 |
if ( ret ) { |
|
5110
|
2 |
3 |
if (nNode->type == XML_DTD_NODE) { |
|
5113
|
5 |
0 |
PmmFixOwner(SvPROXYNODE(RETVAL), owner); |
|
5132
|
0 |
6 |
if ( ret == NULL ) { |
|
5136
|
1 |
5 |
if ( ret->type == XML_DTD_NODE ) { |
|
5142
|
5 |
0 |
if ( doc != NULL ) { |
|
5194
|
7 |
0 |
if ( uri != NULL ) { |
|
5214
|
156 |
0 |
if ( internalFlag ) { |
|
5215
|
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); |
|
5219
|
152 |
4 |
if ( format <= 0 ) { |
|
5237
|
156 |
0 |
if ( ret != NULL ) { |
|
5238
|
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) ) { |
|
5278
|
0 |
24 |
if ( self->doc == NULL ) { |
|
5284
|
24 |
0 |
if ( xpath != NULL && xpath != &PL_sv_undef ) { |
|
|
11 |
13 |
if ( xpath != NULL && xpath != &PL_sv_undef ) { |
|
5288
|
11 |
13 |
if ( nodepath != NULL && xmlStrlen( nodepath ) == 0 ) { |
|
|
0 |
11 |
if ( nodepath != NULL && xmlStrlen( nodepath ) == 0 ) { |
|
5293
|
13 |
11 |
if ( nodepath == NULL |
|
5294
|
3 |
10 |
&& self->type != XML_DOCUMENT_NODE |
|
5295
|
3 |
0 |
&& self->type != XML_HTML_DOCUMENT_NODE |
|
5296
|
3 |
0 |
&& self->type != XML_DOCB_DOCUMENT_NODE |
|
5298
|
0 |
3 |
if (comments) |
|
5304
|
14 |
10 |
if ( nodepath != NULL ) { |
|
5305
|
4 |
10 |
if ( self->type == XML_DOCUMENT_NODE |
|
5306
|
4 |
0 |
|| self->type == XML_HTML_DOCUMENT_NODE |
|
5307
|
0 |
4 |
|| self->type == XML_DOCB_DOCUMENT_NODE ) { |
|
5310
|
12 |
2 |
if (SvOK(xpath_context)) { |
|
|
12 |
0 |
if (SvOK(xpath_context)) { |
|
|
0 |
12 |
if (SvOK(xpath_context)) { |
|
5311
|
2 |
0 |
child_ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(xpath_context))); |
|
5312
|
0 |
2 |
if ( child_ctxt == NULL ) { |
|
5319
|
0 |
14 |
if (!child_ctxt) { |
|
5320
|
0 |
0 |
if ( nodepath != NULL ) { |
|
5330
|
13 |
1 |
if (child_ctxt->namespaces != NULL) { |
|
5334
|
12 |
2 |
if (!xpath_context) xmlXPathFreeContext(child_ctxt); |
|
5335
|
14 |
0 |
if ( nodepath != NULL ) { |
|
5339
|
0 |
14 |
if (xpath_res == NULL) { |
|
5344
|
0 |
14 |
if ( nodelist == NULL ) { |
|
5358
|
14 |
10 |
if ( xpath_res ) xmlXPathFreeObject(xpath_res); |
|
5362
|
0 |
24 |
if (result == NULL) { |
|
5384
|
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) ) { |
|
5419
|
0 |
54 |
if ( node == NULL ) { |
|
5422
|
3 |
51 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
|
3 |
0 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
5423
|
3 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( pxpath ))); |
|
5424
|
0 |
3 |
if (!comp) XSRETURN_UNDEF; |
|
5427
|
51 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
51 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
5429
|
0 |
0 |
if ( xpath ) |
|
5437
|
3 |
51 |
if (comp) { |
|
5444
|
42 |
12 |
if (found) { |
|
5450
|
0 |
25 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::NodeList", 0))); |
|
5452
|
25 |
0 |
if ( nodelist ) { |
|
5453
|
25 |
0 |
if ( nodelist->nodeNr > 0 ) { |
|
5460
|
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)); |
|
5461
|
40 |
25 |
for( i=0 ; i < l; i++){ |
|
5471
|
0 |
40 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
5473
|
0 |
0 |
if ( newns != NULL ) { |
|
5489
|
0 |
40 |
XPUSHs( sv_2mortal(element) ); |
|
5499
|
0 |
12 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Boolean", 0))); |
|
5500
|
0 |
12 |
XPUSHs(sv_2mortal(newSViv(found->boolval))); |
|
5505
|
0 |
2 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Number", 0))); |
|
5506
|
0 |
2 |
XPUSHs(sv_2mortal(newSVnv(found->floatval))); |
|
5511
|
0 |
3 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Literal", 0))); |
|
5512
|
0 |
3 |
XPUSHs(sv_2mortal(C2Sv(found->stringval, NULL))); |
|
5535
|
0 |
95 |
if ( node == NULL ) { |
|
5536
|
0 |
0 |
if ( xpath ) |
|
5540
|
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")) { |
|
5541
|
3 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( perl_xpath ))); |
|
5542
|
0 |
3 |
if (!comp) XSRETURN_UNDEF; |
|
5545
|
92 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
92 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
5547
|
0 |
0 |
if ( xpath ) |
|
5555
|
3 |
92 |
if (comp) { |
|
5563
|
87 |
8 |
if ( nodelist ) { |
|
5565
|
81 |
6 |
if ( nodelist->nodeNr > 0 ) { |
|
5570
|
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)); |
|
5572
|
6199 |
81 |
for(i=0 ; i < len; i++){ |
|
5579
|
3 |
6196 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
5581
|
2 |
1 |
if ( newns != NULL ) { |
|
5597
|
3 |
6195 |
XPUSHs( sv_2mortal(element) ); |
|
5619
|
0 |
37 |
if ( node == NULL ) { |
|
5623
|
37 |
0 |
if (node->type == XML_ELEMENT_NODE) { |
|
5625
|
5 |
37 |
while ( ns != NULL ) { |
|
5626
|
2 |
3 |
if (ns->prefix != NULL || ns->href != NULL) { |
|
|
2 |
0 |
if (ns->prefix != NULL || ns->href != NULL) { |
|
5628
|
5 |
0 |
if ( newns != NULL ) { |
|
5634
|
0 |
5 |
XPUSHs( sv_2mortal(element) ); |
|
5653
|
0 |
1 |
if ( node->type == XML_ELEMENT_NODE |
|
5654
|
0 |
0 |
|| node->type == XML_ATTRIBUTE_NODE |
|
5655
|
0 |
0 |
|| node->type == XML_PI_NODE ) { |
|
5657
|
1 |
0 |
if ( ns != NULL ) { |
|
5659
|
1 |
0 |
if ( newns != NULL ) { |
|
5686
|
0 |
3 |
if ( path == NULL ) { |
|
5731
|
0 |
33 |
if ( node == NULL ) { |
|
5740
|
1 |
32 |
if ( xmlStrlen( nsPrefix ) == 0 ) { |
|
5744
|
1 |
32 |
if ( xmlStrlen( nsURI ) == 0 ) { |
|
5748
|
1 |
32 |
if ( nsPrefix == NULL && nsURI == NULL ) { |
|
|
1 |
0 |
if ( nsPrefix == NULL && nsURI == NULL ) { |
|
5750
|
0 |
1 |
if ( (ns = xmlSearchNs(node->doc, node, NULL)) && |
|
|
0 |
0 |
if ( (ns = xmlSearchNs(node->doc, node, NULL)) && |
|
5751
|
0 |
0 |
( ns->href && xmlStrlen( ns->href ) != 0 ) ) { |
|
5754
|
1 |
0 |
} else if ( flag ) { |
|
5762
|
4 |
28 |
else if ( flag && (ns = xmlSearchNs(node->doc, node, nsPrefix)) ) { |
|
|
1 |
3 |
else if ( flag && (ns = xmlSearchNs(node->doc, node, nsPrefix)) ) { |
|
5765
|
1 |
0 |
if ( xmlStrEqual( ns->href, nsURI ) ) { |
|
5768
|
0 |
0 |
else if ( (ns = xmlNewNs( node, nsURI, nsPrefix )) ) { |
|
5775
|
31 |
0 |
else if ( (ns = xmlNewNs( node, nsURI, nsPrefix )) ) |
|
5780
|
5 |
28 |
if ( flag && ns ) { |
|
|
4 |
1 |
if ( flag && ns ) { |
|
5783
|
32 |
1 |
if ( nsPrefix ) xmlFree(nsPrefix); |
|
5784
|
32 |
1 |
if ( nsURI ) xmlFree(nsURI); |
|
5802
|
15 |
0 |
if ( prefix && xmlStrlen(prefix) == 0) { |
|
|
3 |
12 |
if ( prefix && xmlStrlen(prefix) == 0) { |
|
5806
|
12 |
3 |
if ( nsURI && xmlStrlen(nsURI) == 0) { |
|
|
0 |
12 |
if ( nsURI && xmlStrlen(nsURI) == 0) { |
|
5811
|
20 |
8 |
while ( ns ) { |
|
5812
|
11 |
9 |
if ((ns->prefix || ns->href ) && |
|
5814
|
7 |
0 |
if (ns->href) xmlFree((char*)ns->href); |
|
5816
|
3 |
4 |
if ( nsURI == NULL ) { |
|
5826
|
12 |
3 |
if ( prefix ) xmlFree( prefix ); |
|
5827
|
8 |
7 |
if ( nsURI ) xmlFree( nsURI ); |
|
5845
|
6 |
0 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
|
1 |
5 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
5849
|
5 |
1 |
if ( nsPrefix != NULL && xmlStrlen(nsPrefix) == 0) { |
|
|
2 |
3 |
if ( nsPrefix != NULL && xmlStrlen(nsPrefix) == 0) { |
|
5853
|
0 |
6 |
if ( xmlStrcmp( prefix, nsPrefix ) == 0 ) { |
|
5858
|
2 |
4 |
if ( ns != NULL ) { |
|
5859
|
1 |
1 |
if (nsPrefix != NULL) xmlFree( nsPrefix ); |
|
5860
|
2 |
0 |
if (prefix != NULL) xmlFree( prefix ); |
|
5865
|
7 |
0 |
while ( ns != NULL ) { |
|
5866
|
3 |
4 |
if ((ns->prefix != NULL || ns->href != NULL) && |
|
5868
|
1 |
3 |
if ( ns->href == NULL && nsPrefix != NULL ) { |
|
|
0 |
1 |
if ( ns->href == NULL && nsPrefix != NULL ) { |
|
5870
|
0 |
0 |
if ( prefix != NULL) xmlFree(prefix); |
|
5873
|
3 |
1 |
if ( ns->prefix != NULL ) |
|
5884
|
0 |
4 |
if ( nsPrefix != NULL ) xmlFree(nsPrefix); |
|
5885
|
3 |
1 |
if ( prefix != NULL) xmlFree(prefix); |
|
5899
|
21 |
1 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
|
3 |
18 |
if ( prefix != NULL && xmlStrlen(prefix) == 0) { |
|
5905
|
24 |
9 |
while ( ns != NULL ) { |
|
5906
|
8 |
16 |
if ( (ns->prefix != NULL || ns->href != NULL) && |
|
5914
|
18 |
4 |
if ( prefix != NULL ) { |
|
5929
|
0 |
16 |
if ( ! name ) { |
|
5932
|
9 |
7 |
if ( domGetAttrNode( self, name ) ) { |
|
5955
|
0 |
16 |
if ( name == NULL ) { |
|
5956
|
0 |
0 |
if ( nsURI != NULL ) { |
|
5961
|
14 |
2 |
if ( nsURI != NULL && xmlStrlen(nsURI) == 0 ){ |
|
|
2 |
12 |
if ( nsURI != NULL && xmlStrlen(nsURI) == 0 ){ |
|
5966
|
10 |
6 |
if ( attr && attr->type == XML_ATTRIBUTE_NODE ) { |
|
|
8 |
2 |
if ( attr && attr->type == XML_ATTRIBUTE_NODE ) { |
|
5974
|
12 |
4 |
if ( nsURI != NULL ){ |
|
5993
|
0 |
46 |
if( !name ) { |
|
5998
|
7 |
39 |
if ( ret == NULL ) { |
|
6000
|
7 |
0 |
if ( localname != NULL ) { |
|
6002
|
7 |
0 |
if ( ns != NULL ) { |
|
6005
|
7 |
0 |
if ( prefix != NULL) { |
|
6012
|
46 |
0 |
if ( ret ) { |
|
6013
|
9 |
37 |
if ( useDomEncoding ) { |
|
6043
|
4 |
24 |
if ( !LibXML_test_node_name(name) ) { |
|
6088
|
4 |
0 |
if ( name ) { |
|
6091
|
4 |
0 |
if ( xattr ) { |
|
6093
|
1 |
3 |
if ( xattr->_private ) { |
|
6112
|
0 |
45 |
if ( !name ) { |
|
6118
|
30 |
15 |
if ( ret ) { |
|
6119
|
30 |
0 |
RETVAL = PmmNodeToSv( (xmlNodePtr)ret, |
|
6120
|
30 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
6136
|
0 |
1 |
if ( attr == NULL ) { |
|
6140
|
1 |
0 |
if ( attr != NULL && attr->type != XML_ATTRIBUTE_NODE ) { |
|
|
0 |
1 |
if ( attr != NULL && attr->type != XML_ATTRIBUTE_NODE ) { |
|
6143
|
0 |
1 |
if ( attr->doc != self->doc ) { |
|
6147
|
0 |
1 |
if ( ret != NULL ) { |
|
6148
|
0 |
0 |
if ( ret != attr ) { |
|
6159
|
1 |
0 |
if ( attr->_private != NULL ) { |
|
6160
|
1 |
0 |
PmmFixOwner( SvPROXYNODE(attr_node), PmmPROXYNODE(self) ); |
|
6163
|
1 |
0 |
if ( ret == NULL ) { |
|
6168
|
0 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), NULL ); |
|
6185
|
0 |
22 |
if ( !name ) { |
|
6189
|
21 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
20 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6197
|
21 |
1 |
if ( nsURI ) { |
|
6200
|
22 |
0 |
if ( ret ) { |
|
6201
|
0 |
22 |
if (useDomEncoding) { |
|
6232
|
3 |
45 |
if ( !LibXML_test_node_name(name) ) { |
|
6239
|
21 |
24 |
if ( localname ) { |
|
6246
|
44 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
24 |
20 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6256
|
20 |
4 |
if ( ns && !ns->prefix ) |
|
|
4 |
16 |
if ( ns && !ns->prefix ) |
|
6259
|
4 |
0 |
if ( all_ns ) |
|
6263
|
13 |
1 |
while ( ns ) |
|
6265
|
5 |
8 |
if ( ns->prefix && xmlStrEqual(ns->href, nsURI) ) |
|
|
3 |
2 |
if ( ns->prefix && xmlStrEqual(ns->href, nsURI) ) |
|
6275
|
5 |
19 |
if ( !ns ) { |
|
6277
|
5 |
0 |
if ( prefix && xmlStrlen( prefix ) ) { |
|
|
5 |
0 |
if ( prefix && xmlStrlen( prefix ) ) { |
|
6286
|
44 |
1 |
if ( nsURI && xmlStrlen(nsURI) && !ns ) { |
|
|
24 |
20 |
if ( nsURI && xmlStrlen(nsURI) && !ns ) { |
|
|
0 |
24 |
if ( nsURI && xmlStrlen(nsURI) && !ns ) { |
|
6287
|
0 |
0 |
if ( prefix ) xmlFree( prefix ); |
|
6288
|
0 |
0 |
if ( nsURI ) xmlFree( nsURI ); |
|
6298
|
21 |
24 |
if ( prefix ) { |
|
6301
|
44 |
1 |
if ( nsURI ) { |
|
6319
|
0 |
3 |
if ( ! name ) { |
|
6324
|
3 |
0 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
2 |
1 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6330
|
3 |
0 |
if ( xattr && xattr->type == XML_ATTRIBUTE_NODE ) { |
|
|
3 |
0 |
if ( xattr && xattr->type == XML_ATTRIBUTE_NODE ) { |
|
6332
|
2 |
1 |
if ( xattr->_private ) { |
|
6355
|
0 |
33 |
if ( !name ) { |
|
6359
|
20 |
13 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
|
20 |
0 |
if ( nsURI && xmlStrlen(nsURI) ) { |
|
6366
|
20 |
13 |
if ( nsURI ) { |
|
6369
|
18 |
15 |
if ( ret && |
|
|
12 |
6 |
if ( ret && |
|
6372
|
12 |
0 |
RETVAL = PmmNodeToSv( (xmlNodePtr)ret, |
|
6373
|
12 |
0 |
PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
6391
|
0 |
4 |
if ( attr == NULL ) { |
|
6395
|
0 |
4 |
if ( attr->type != XML_ATTRIBUTE_NODE ) { |
|
6399
|
1 |
3 |
if ( attr->doc != self->doc ) { |
|
6405
|
4 |
0 |
if ( ns != NULL ) { |
|
6412
|
0 |
4 |
if ( ret && ret->type == XML_ATTRIBUTE_NODE ) { |
|
|
0 |
0 |
if ( ret && ret->type == XML_ATTRIBUTE_NODE ) { |
|
6413
|
0 |
0 |
if ( ret != attr ) { |
|
6424
|
4 |
0 |
if ( attr->_private != NULL ) { |
|
6425
|
4 |
0 |
PmmFixOwner( SvPROXYNODE(attr_node), PmmPROXYNODE(self) ); |
|
6427
|
0 |
4 |
if ( ret != NULL && ret->type == XML_ATTRIBUTE_NODE ) { |
|
|
0 |
0 |
if ( ret != NULL && ret->type == XML_ATTRIBUTE_NODE ) { |
|
6429
|
0 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), NULL ); |
|
6444
|
0 |
3 |
if ( attr == NULL ) { |
|
6448
|
0 |
3 |
if ( attr->type != XML_ATTRIBUTE_NODE ) { |
|
6451
|
0 |
3 |
if ( attr->parent != self ) { |
|
6457
|
3 |
0 |
PmmFixOwner( SvPROXYNODE(RETVAL), NULL ); |
|
6474
|
0 |
88 |
if ( content == NULL ) { |
|
6477
|
0 |
88 |
if ( xmlStrlen(content) == 0 ) { |
|
6498
|
0 |
3 |
if ( xmlStrlen(name) == 0 ) { |
|
6504
|
2 |
1 |
if ( content && xmlStrlen( content ) == 0 ) { |
|
|
0 |
2 |
if ( content && xmlStrlen( content ) == 0 ) { |
|
6508
|
2 |
1 |
else if ( content ) { |
|
6515
|
2 |
1 |
if ( encstr ) |
|
6537
|
72 |
0 |
if ( name && xmlStrlen( name ) == 0 ) { |
|
|
0 |
72 |
if ( name && xmlStrlen( name ) == 0 ) { |
|
6543
|
72 |
0 |
if ( nsURI && xmlStrlen( nsURI ) == 0 ) { |
|
|
50 |
22 |
if ( nsURI && xmlStrlen( nsURI ) == 0 ) { |
|
6548
|
22 |
50 |
if ( nsURI != NULL ) { |
|
6552
|
20 |
2 |
newNode = xmlNewDocNode(self->doc, |
|
6556
|
4 |
18 |
if ( ns == NULL ) { |
|
6576
|
31 |
41 |
if (self->children == NULL) { |
|
6585
|
72 |
0 |
RETVAL = PmmNodeToSv(newNode, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
|
40 |
32 |
RETVAL = PmmNodeToSv(newNode, PmmOWNERPO(PmmPROXYNODE(self)) ); |
|
6602
|
18 |
0 |
if( newNode != NULL ) { |
|
6622
|
4 |
0 |
if ( offset >= 0 && length >= 0 ) { |
|
|
4 |
0 |
if ( offset >= 0 && length >= 0 ) { |
|
6624
|
4 |
0 |
if ( data != NULL ) { |
|
6662
|
2 |
0 |
encstring = Sv2C( value, |
|
6665
|
2 |
0 |
if ( encstring != NULL ) { |
|
6683
|
5 |
0 |
if ( offset >= 0 ) { |
|
6684
|
5 |
0 |
encstring = Sv2C( value, |
|
6686
|
5 |
0 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
|
4 |
1 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
6688
|
4 |
0 |
if ( data != NULL && xmlStrlen( data ) > 0 ) { |
|
|
4 |
0 |
if ( data != NULL && xmlStrlen( data ) > 0 ) { |
|
6689
|
0 |
4 |
if ( xmlUTF8Strlen( data ) < offset ) { |
|
6696
|
4 |
0 |
if ( offset > 0 ) |
|
6701
|
4 |
0 |
if ( new != NULL ) { |
|
6708
|
4 |
0 |
if ( after != NULL ) |
|
6738
|
7 |
2 |
if ( length > 0 && offset >= 0 ) { |
|
|
7 |
0 |
if ( length > 0 && offset >= 0 ) { |
|
6741
|
7 |
0 |
if ( data != NULL |
|
6742
|
7 |
0 |
&& len > 0 |
|
6743
|
5 |
2 |
&& len > offset ) { |
|
6745
|
4 |
1 |
if ( offset > 0 ) |
|
6748
|
3 |
2 |
if ( len > dl1 ) { |
|
6751
|
2 |
1 |
if ( new != NULL ) { |
|
6780
|
6 |
0 |
if ( offset >= 0 ) { |
|
6781
|
6 |
0 |
encstring = Sv2C( value, |
|
6784
|
6 |
0 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
|
6 |
0 |
if ( encstring != NULL && xmlStrlen( encstring ) > 0 ) { |
|
6788
|
6 |
0 |
if ( data != NULL |
|
6789
|
6 |
0 |
&& len > 0 |
|
6790
|
6 |
0 |
&& len > offset ) { |
|
6793
|
4 |
2 |
if ( dl1 < len ) { |
|
6795
|
4 |
0 |
if ( offset > 0 ) { |
|
6813
|
2 |
0 |
if ( offset > 0 ) { |
|
6843
|
7 |
0 |
if( newNode != NULL ) { |
|
6867
|
7 |
0 |
if ( newNode != NULL ){ |
|
6903
|
0 |
0 |
if ( name == NULL ) { |
|
6942
|
4 |
0 |
if ( xmlBufferLength(buffer) > 0 ) { |
|
6945
|
4 |
0 |
if ( ret != NULL ) { |
|
6946
|
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) ) { |
|
6981
|
2 |
8 |
if ((node->ns != NULL) && (node->ns->prefix != NULL)) { |
|
|
2 |
0 |
if ((node->ns != NULL) && (node->ns->prefix != NULL)) { |
|
6990
|
10 |
0 |
if ( xmlBufferLength(buffer) > 0 ) { |
|
6993
|
10 |
0 |
if ( ret != NULL ) { |
|
6994
|
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) ) { |
|
7022
|
0 |
2 |
if ( node == NULL ) { |
|
7026
|
2 |
0 |
if ( !nsURI || xmlStrlen(nsURI)==0 ){ |
|
|
1 |
1 |
if ( !nsURI || xmlStrlen(nsURI)==0 ){ |
|
7030
|
0 |
2 |
if ( !node->parent ) { |
|
7039
|
0 |
1 |
else if ( (ns = xmlSearchNsByHref(node->doc, node->parent, nsURI)) ) { |
|
7043
|
0 |
1 |
else if (! RETVAL) |
|
7046
|
1 |
1 |
if ( ns ) { |
|
7047
|
1 |
0 |
if ( ns->prefix ) { |
|
7065
|
0 |
10 |
if ( attr == NULL ) { |
|
7069
|
10 |
0 |
if ( elem == NULL || elem->doc == NULL ) { |
|
|
0 |
10 |
if ( elem == NULL || elem->doc == NULL ) { |
|
7091
|
0 |
14 |
if ( !nsURI ) { |
|
7096
|
14 |
0 |
if ( ns ) { |
|
7103
|
9 |
5 |
if ( nsPrefix ) |
|
7112
|
36 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7115
|
36 |
0 |
if (ns) { |
|
7125
|
3 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7143
|
12 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7160
|
20 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7174
|
10 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7190
|
0 |
0 |
xmlNsPtr ns = INT2PTR(xmlNsPtr,SvIV(SvRV(self))); |
|
7191
|
0 |
0 |
xmlNsPtr ons = INT2PTR(xmlNsPtr,SvIV(SvRV(ref_node))); |
|
7194
|
0 |
0 |
if ( ns == ons ) { |
|
7197
|
0 |
0 |
else if ( xmlStrEqual(ns->href, ons->href) |
|
7198
|
0 |
0 |
&& xmlStrEqual(ns->prefix, ons->prefix) ) { |
|
7220
|
2 |
2 |
if ( dtd == NULL ) { |
|
7240
|
1 |
2 |
if ( self->SystemID == NULL ) { |
|
7255
|
1 |
2 |
if ( self->ExternalID == NULL ) { |
|
7275
|
0 |
4 |
if (items > 2) { |
|
7277
|
0 |
0 |
if (items > 3) { |
|
7282
|
0 |
0 |
enc = xmlParseCharEncoding(SvPV_nolen(encoding_sv)); |
|
7283
|
0 |
0 |
if (enc == XML_CHAR_ENCODING_ERROR) { |
|
7286
|
0 |
0 |
croak("Parse of encoding %s failed", SvPV_nolen(encoding_sv)); |
|
7291
|
0 |
4 |
if ( !buffer) { |
|
7303
|
3 |
1 |
if ( res && LibXML_will_die_ctx(saved_error, 0) ) |
|
|
0 |
3 |
if ( res && LibXML_will_die_ctx(saved_error, 0) ) |
|
7307
|
0 |
3 |
if (res == NULL) { |
|
7340
|
0 |
6 |
if ( rngctxt == NULL ) { |
|
7351
|
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) ) { |
|
7358
|
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) ) |
|
7363
|
4 |
2 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7381
|
3 |
0 |
string = SvPV( perlstring, len ); |
|
7382
|
0 |
3 |
if ( string == NULL ) { |
|
7389
|
0 |
3 |
if ( rngctxt == NULL ) { |
|
7400
|
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) ) { |
|
7407
|
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) ) |
|
7412
|
1 |
2 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7431
|
0 |
2 |
if ( rngctxt == NULL ) { |
|
7442
|
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) ) { |
|
7449
|
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) ) |
|
7454
|
1 |
1 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7468
|
7 |
0 |
if (doc) { |
|
7469
|
7 |
0 |
PmmClearPSVI(doc); |
|
|
7 |
0 |
PmmClearPSVI(doc); |
|
|
7 |
0 |
PmmClearPSVI(doc); |
|
|
4 |
3 |
PmmClearPSVI(doc); |
|
7470
|
7 |
0 |
PmmInvalidatePSVI(doc); |
|
|
7 |
0 |
PmmInvalidatePSVI(doc); |
|
7473
|
0 |
7 |
if ( vctxt == NULL ) { |
|
7495
|
0 |
3 |
if ( RETVAL == 1 ) { |
|
7498
|
0 |
3 |
if ( RETVAL == -1 ) { |
|
7529
|
0 |
5 |
if ( rngctxt == NULL ) { |
|
7541
|
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) ) { |
|
7548
|
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) ) |
|
7553
|
4 |
1 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7571
|
4 |
0 |
string = SvPV( perlstring, len ); |
|
7572
|
0 |
4 |
if ( string == NULL ) { |
|
7579
|
0 |
4 |
if ( rngctxt == NULL ) { |
|
7591
|
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) ) { |
|
7598
|
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) ) |
|
7603
|
3 |
1 |
REPORT_ERROR((RETVAL == NULL) ? 0 : recover); |
|
7618
|
2 |
1 |
if (node->type == XML_DOCUMENT_NODE) { |
|
7619
|
2 |
0 |
PmmClearPSVI((xmlDocPtr)node); |
|
|
2 |
0 |
PmmClearPSVI((xmlDocPtr)node); |
|
|
2 |
0 |
PmmClearPSVI((xmlDocPtr)node); |
|
|
0 |
2 |
PmmClearPSVI((xmlDocPtr)node); |
|
7620
|
2 |
0 |
PmmInvalidatePSVI((xmlDocPtr)node); |
|
|
2 |
0 |
PmmInvalidatePSVI((xmlDocPtr)node); |
|
7623
|
0 |
3 |
if ( vctxt == NULL ) { |
|
7635
|
2 |
1 |
if (node->type == XML_DOCUMENT_NODE) { |
|
7646
|
0 |
2 |
if ( RETVAL > 0 ) { |
|
7649
|
0 |
2 |
if ( RETVAL == -1 ) { |
|
7670
|
26 |
4 |
if( items > 1 ) |
|
7677
|
0 |
30 |
if (ctxt->user == NULL) { |
|
7681
|
4 |
26 |
if (SvOK(pnode)) { |
|
|
4 |
0 |
if (SvOK(pnode)) { |
|
|
0 |
4 |
if (SvOK(pnode)) { |
|
7706
|
30 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7709
|
30 |
0 |
if (ctxt) { |
|
7710
|
30 |
0 |
if (XPathContextDATA(ctxt) != NULL) { |
|
7711
|
28 |
2 |
if (XPathContextDATA(ctxt)->node != NULL && |
|
|
1 |
27 |
if (XPathContextDATA(ctxt)->node != NULL && |
|
7712
|
1 |
0 |
SvOK(XPathContextDATA(ctxt)->node)) { |
|
|
0 |
1 |
SvOK(XPathContextDATA(ctxt)->node)) { |
|
7715
|
2 |
28 |
if (XPathContextDATA(ctxt)->varLookup != NULL && |
|
|
0 |
2 |
if (XPathContextDATA(ctxt)->varLookup != NULL && |
|
7716
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varLookup)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varLookup)) { |
|
7719
|
1 |
29 |
if (XPathContextDATA(ctxt)->varData != NULL && |
|
|
0 |
1 |
if (XPathContextDATA(ctxt)->varData != NULL && |
|
7720
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varData)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->varData)) { |
|
7723
|
0 |
30 |
if (XPathContextDATA(ctxt)->pool != NULL && |
|
|
0 |
0 |
if (XPathContextDATA(ctxt)->pool != NULL && |
|
7724
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->pool)) { |
|
|
0 |
0 |
SvOK(XPathContextDATA(ctxt)->pool)) { |
|
7730
|
4 |
26 |
if (ctxt->namespaces != NULL) { |
|
7733
|
1 |
29 |
if (ctxt->funcLookupData != NULL && SvROK((SV*)ctxt->funcLookupData) |
|
|
1 |
0 |
if (ctxt->funcLookupData != NULL && SvROK((SV*)ctxt->funcLookupData) |
|
7734
|
1 |
0 |
&& SvTYPE(SvRV((SV *)ctxt->funcLookupData)) == SVt_PVHV) { |
|
7745
|
27 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7746
|
0 |
27 |
if ( ctxt == NULL ) { |
|
7750
|
14 |
13 |
if(XPathContextDATA(ctxt)->node != NULL) { |
|
7762
|
4 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7763
|
0 |
4 |
if ( ctxt == NULL ) { |
|
7775
|
5 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7776
|
0 |
5 |
if ( ctxt == NULL ) { |
|
7789
|
40 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7790
|
0 |
40 |
if ( ctxt == NULL ) { |
|
7794
|
27 |
13 |
if (XPathContextDATA(ctxt)->node != NULL) { |
|
7797
|
15 |
25 |
if (SvOK(pnode)) { |
|
|
15 |
0 |
if (SvOK(pnode)) { |
|
|
0 |
15 |
if (SvOK(pnode)) { |
|
7808
|
4 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7809
|
0 |
4 |
if ( ctxt == NULL ) |
|
7811
|
3 |
1 |
if ( position < -1 || position > ctxt->contextSize ) |
|
|
2 |
1 |
if ( position < -1 || position > ctxt->contextSize ) |
|
7821
|
4 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7822
|
0 |
4 |
if ( ctxt == NULL ) |
|
7824
|
1 |
3 |
if ( size < -1 ) |
|
7828
|
1 |
2 |
if ( size == 0 ) |
|
7830
|
1 |
1 |
else if ( size > 0 ) |
|
7843
|
11 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7844
|
0 |
11 |
if ( ctxt == NULL ) { |
|
7849
|
3 |
8 |
if(SvOK(ns_uri)) { |
|
|
3 |
0 |
if(SvOK(ns_uri)) { |
|
|
0 |
3 |
if(SvOK(ns_uri)) { |
|
7850
|
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), |
|
7855
|
3 |
0 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), NULL) == -1) { |
|
|
0 |
3 |
if(xmlXPathRegisterNs(ctxt, (xmlChar *) SvPV_nolen(prefix), NULL) == -1) { |
|
7867
|
3 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7868
|
0 |
3 |
if ( ctxt == NULL ) { |
|
7873
|
3 |
0 |
RETVAL = C2Sv(xmlXPathNsLookup(ctxt, (xmlChar *) SvPV_nolen(prefix)), NULL); |
|
7881
|
6 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7882
|
0 |
6 |
if ( ctxt == NULL ) { |
|
7886
|
5 |
1 |
if(XPathContextDATA(ctxt)->varData != NULL) { |
|
7898
|
2 |
0 |
xmlXPathContextPtr ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(self))); |
|
7899
|
0 |
2 |
if ( ctxt == NULL ) { |
|
7903
|
1 |
1 |
if(XPathContextDATA(ctxt)->varData != NULL) { |
|
7920
|
4 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7921
|
0 |
4 |
if ( ctxt == NULL ) |
|
7924
|
0 |
4 |
if ( data == NULL ) |
|
7928
|
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)) |
|
7930
|
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)) |
|
7935
|
1 |
3 |
if (SvOK(lookup_func)) { |
|
|
1 |
0 |
if (SvOK(lookup_func)) { |
|
|
0 |
1 |
if (SvOK(lookup_func)) { |
|
7936
|
3 |
0 |
if ( SvROK(lookup_func) && SvTYPE(SvRV(lookup_func)) == SVt_PVCV ) { |
|
|
3 |
0 |
if ( SvROK(lookup_func) && SvTYPE(SvRV(lookup_func)) == SVt_PVCV ) { |
|
7938
|
1 |
2 |
if (SvOK(lookup_data)) |
|
|
1 |
0 |
if (SvOK(lookup_data)) |
|
|
0 |
1 |
if (SvOK(lookup_data)) |
|
7942
|
3 |
0 |
if (ctxt->varLookupData==NULL || ctxt->varLookupData != ctxt) { |
|
|
0 |
3 |
if (ctxt->varLookupData==NULL || ctxt->varLookupData != ctxt) { |
|
7967
|
14 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
7968
|
0 |
14 |
if ( ctxt == NULL ) { |
|
7972
|
3 |
11 |
if ( !SvOK(func) || |
|
|
3 |
0 |
if ( !SvOK(func) || |
|
|
0 |
3 |
if ( !SvOK(func) || |
|
|
0 |
11 |
if ( !SvOK(func) || |
|
7973
|
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 ) |
|
7974
|
1 |
0 |
|| SvPOK(func)))) { |
|
7975
|
1 |
13 |
if (ctxt->funcLookupData == NULL) { |
|
7976
|
0 |
1 |
if (SvOK(func)) { |
|
|
0 |
0 |
if (SvOK(func)) { |
|
|
0 |
0 |
if (SvOK(func)) { |
|
7986
|
13 |
0 |
if (SvTYPE(SvRV((SV *)ctxt->funcLookupData)) == SVt_PVHV) { |
|
7994
|
12 |
2 |
if (SvOK(uri)) { |
|
|
12 |
0 |
if (SvOK(uri)) { |
|
|
0 |
12 |
if (SvOK(uri)) { |
|
8000
|
14 |
0 |
strkey = SvPV(key, len); |
|
8002
|
3 |
11 |
if (SvOK(func)) { |
|
|
3 |
0 |
if (SvOK(func)) { |
|
|
0 |
3 |
if (SvOK(func)) { |
|
8013
|
12 |
2 |
if (SvOK(uri)) { |
|
|
12 |
0 |
if (SvOK(uri)) { |
|
|
0 |
12 |
if (SvOK(uri)) { |
|
8014
|
1 |
1 |
xmlXPathRegisterFuncNS(ctxt, (xmlChar *) name, |
|
|
2 |
0 |
xmlXPathRegisterFuncNS(ctxt, (xmlChar *) name, |
|
8016
|
1 |
0 |
(SvOK(func) ? |
|
|
0 |
1 |
(SvOK(func) ? |
|
8019
|
2 |
10 |
xmlXPathRegisterFunc(ctxt, (xmlChar *) name, |
|
8020
|
2 |
0 |
(SvOK(func) ? |
|
|
0 |
2 |
(SvOK(func) ? |
|
8030
|
130 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
8031
|
0 |
130 |
if ( ctxt == NULL ) { |
|
8035
|
20 |
110 |
if (XPathContextDATA(ctxt)->pool != NULL) { |
|
8054
|
61 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
8055
|
0 |
61 |
if ( ctxt == NULL ) { |
|
8059
|
0 |
61 |
if ( ctxt->node == NULL ) { |
|
8062
|
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")) { |
|
8063
|
4 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( perl_xpath ))); |
|
8064
|
0 |
4 |
if (!comp) XSRETURN_UNDEF; |
|
8067
|
57 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
57 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
8068
|
0 |
0 |
if ( xpath ) |
|
8078
|
4 |
57 |
if (comp) { |
|
8086
|
59 |
2 |
if (found != NULL) { |
|
8092
|
59 |
2 |
if ( nodelist ) { |
|
8094
|
59 |
0 |
if ( nodelist->nodeNr > 0 ) { |
|
8099
|
3076 |
59 |
for( i = 0 ; i < l; i++){ |
|
8106
|
0 |
3076 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
8108
|
0 |
0 |
if ( newns != NULL ) { |
|
8121
|
3073 |
3 |
if (tnode->doc) { |
|
8122
|
3073 |
0 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
|
0 |
3073 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
8126
|
5 |
0 |
while (n && n->_private == NULL) n = n->parent; |
|
|
2 |
3 |
while (n && n->_private == NULL) n = n->parent; |
|
8127
|
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)); |
|
8132
|
0 |
3076 |
XPUSHs( sv_2mortal(element) ); |
|
8136
|
0 |
59 |
if (found->boolval) found->boolval=0; |
|
8158
|
69 |
0 |
ctxt = INT2PTR(xmlXPathContextPtr,SvIV(SvRV(pxpath_context))); |
|
8159
|
0 |
69 |
if ( ctxt == NULL ) { |
|
8163
|
1 |
68 |
if ( ctxt->node == NULL ) { |
|
8166
|
3 |
65 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
|
3 |
0 |
if (sv_isobject(pxpath) && sv_isa(pxpath,"XML::LibXML::XPathExpression")) { |
|
8167
|
3 |
0 |
comp = INT2PTR(xmlXPathCompExprPtr,SvIV((SV*)SvRV( pxpath ))); |
|
8168
|
0 |
3 |
if (!comp) XSRETURN_UNDEF; |
|
8171
|
65 |
0 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
|
0 |
65 |
if ( !(xpath && xmlStrlen(xpath)) ) { |
|
8172
|
0 |
0 |
if ( xpath ) |
|
8181
|
3 |
65 |
if (comp) { |
|
8189
|
59 |
8 |
if (found) { |
|
8195
|
0 |
10 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::NodeList", 0))); |
|
8197
|
10 |
0 |
if ( nodelist ) { |
|
8198
|
10 |
0 |
if ( nodelist->nodeNr > 0 ) { |
|
8205
|
6011 |
10 |
for( i = 0 ; i < l; i++){ |
|
8215
|
0 |
6011 |
if (tnode->type == XML_NAMESPACE_DECL) { |
|
8217
|
0 |
0 |
if ( newns != NULL ) { |
|
8230
|
6011 |
0 |
if (tnode->doc) { |
|
8231
|
6011 |
0 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
|
0 |
6011 |
owner = PmmOWNERPO(PmmNewNode((xmlNodePtr) tnode->doc)); |
|
8235
|
0 |
0 |
while (n && n->_private == NULL) n = n->parent; |
|
|
0 |
0 |
while (n && n->_private == NULL) n = n->parent; |
|
8236
|
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)); |
|
8241
|
0 |
6011 |
XPUSHs( sv_2mortal(element) ); |
|
8246
|
0 |
10 |
if (found->boolval) found->boolval=0; |
|
8251
|
0 |
14 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Boolean", 0))); |
|
8252
|
0 |
14 |
XPUSHs(sv_2mortal(newSViv(found->boolval))); |
|
8257
|
0 |
24 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Number", 0))); |
|
8258
|
0 |
24 |
XPUSHs(sv_2mortal(newSVnv(found->floatval))); |
|
8263
|
0 |
11 |
XPUSHs(sv_2mortal(newSVpv("XML::LibXML::Literal", 0))); |
|
8264
|
0 |
11 |
XPUSHs(sv_2mortal(C2Sv(found->stringval, NULL))); |
|
8332
|
8 |
0 |
if (encoding == NULL && SvUTF8( string )) { |
|
|
2 |
6 |
if (encoding == NULL && SvUTF8( string )) { |
|
8335
|
8 |
0 |
RETVAL = xmlReaderForDoc((xmlChar* )SvPV_nolen(string), url, encoding, options); |
|
8358
|
1 |
0 |
PmmREFCNT_inc(SvPROXYNODE(perl_doc)); /* _dec in DESTROY */ |
|
8590
|
0 |
0 |
if (xmlTextReaderHasAttributes(reader) && xmlTextReaderMoveToFirstAttribute(reader)==1) { |
|
|
0 |
0 |
if (xmlTextReaderHasAttributes(reader) && xmlTextReaderMoveToFirstAttribute(reader)==1) { |
|
8594
|
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) { |
|
8597
|
0 |
0 |
} while (xmlTextReaderMoveToNextAttribute(reader)==1); |
|
8744
|
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) |
|
8760
|
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) |
|
8761
|
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)) { |
|
8764
|
5 |
0 |
} while (RETVAL == 1); |
|
8781
|
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)) { |
|
8784
|
4 |
0 |
} while (RETVAL == 1); |
|
8798
|
0 |
5 |
if ( compiled == NULL ) |
|
8803
|
41 |
1 |
if (node && xmlPatternMatch(compiled, node)) { |
|
|
4 |
37 |
if (node && xmlPatternMatch(compiled, node)) { |
|
8806
|
37 |
1 |
} while (RETVAL == 1); |
|
8823
|
1 |
0 |
if (depth > 0) { |
|
8826
|
3 |
0 |
} while (RETVAL == 1 && xmlTextReaderDepth(reader) >= depth); |
|
|
2 |
1 |
} while (RETVAL == 1 && xmlTextReaderDepth(reader) >= depth); |
|
8827
|
0 |
1 |
if (xmlTextReaderNodeType(reader) != XML_READER_TYPE_END_ELEMENT) { |
|
8851
|
0 |
0 |
if (ret == -1) XSRETURN_UNDEF; |
|
8895
|
0 |
1 |
if (!result) XSRETURN_UNDEF; |
|
8913
|
3 |
0 |
if (result) { |
|
8956
|
0 |
8 |
if ( node ==NULL ) { |
|
8960
|
0 |
8 |
if ( path == NULL ) { |
|
8977
|
0 |
41 |
if ( compiled == NULL ) |
|
8980
|
0 |
41 |
if ( node ==NULL ) { |
|
9002
|
1 |
1 |
if (expand) { |
|
9008
|
2 |
0 |
if (node) { |
|
9011
|
0 |
2 |
if (!doc) { |
|
9016
|
0 |
2 |
if (xmlTextReaderGetParserProp(reader,XML_PARSER_VALIDATE)) |
|
9017
|
0 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
|
0 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
9020
|
0 |
2 |
if ( copy == NULL ) { |
|
9025
|
0 |
2 |
if ( copy->type == XML_DTD_NODE ) { |
|
9031
|
2 |
0 |
if ( doc != NULL ) { |
|
9035
|
1 |
1 |
if (PmmREFCNT(proxy) == 0) { |
|
9056
|
0 |
3 |
if (!doc) XSRETURN_UNDEF; |
|
9059
|
3 |
0 |
if ( PmmREFCNT(SvPROXYNODE(RETVAL))==1 ) { |
|
|
0 |
3 |
if ( PmmREFCNT(SvPROXYNODE(RETVAL))==1 ) { |
|
9061
|
0 |
0 |
PmmREFCNT_inc(SvPROXYNODE(RETVAL)); |
|
9063
|
2 |
1 |
if (xmlTextReaderGetParserProp(reader,XML_PARSER_VALIDATE)) |
|
9064
|
2 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
|
2 |
0 |
PmmInvalidatePSVI(doc); /* the document may have psvi info */ |
|
9081
|
1 |
1 |
if (ns_map) { |
|
9083
|
0 |
1 |
New(0,namespaces, last+2, xmlChar*); |
|
9084
|
2 |
1 |
for( i = 0; i <= last ; i++ ) { |
|
9086
|
2 |
0 |
namespaces[i]=(xmlChar*) SvPV_nolen(*aux); |
|
9107
|
0 |
1 |
if (!doc) { |
|
9113
|
0 |
1 |
if ( PmmREFCNT(proxy) == 0 ) { |
|
9122
|
1 |
0 |
if (node) { |
|
9139
|
10 |
92 |
if (RETVAL!=1) break; |
|
9197
|
2 |
18 |
if ( LibXML_get_reader_preserve_flag(reader) ) { |
|
9199
|
2 |
0 |
if (doc) { |
|
9201
|
0 |
2 |
if ( PmmREFCNT(proxy) == 0 ) { |
|
9207
|
19 |
1 |
if (xmlTextReaderReadState(reader) != XML_TEXTREADER_MODE_CLOSED) { |
|
9329
|
184 |
277 |
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || |
|
|
78 |
106 |
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || |
|
|
76 |
2 |
if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || |
|
9330
|
75 |
1 |
(domain == XML_FROM_DTD) || (domain == XML_FROM_NAMESPACE) || |
|
|
69 |
6 |
(domain == XML_FROM_DTD) || (domain == XML_FROM_NAMESPACE) || |
|
9331
|
10 |
59 |
(domain == XML_FROM_IO) || (domain == XML_FROM_VALID)) { |
|
9334
|
65 |
396 |
if (ctxt == NULL) XSRETURN_EMPTY; |
|
9336
|
394 |
2 |
if ((input != NULL) && (input->filename == NULL) && |
|
|
128 |
266 |
if ((input != NULL) && (input->filename == NULL) && |
|
|
0 |
128 |
if ((input != NULL) && (input->filename == NULL) && |
|
9340
|
2 |
394 |
if (input == NULL) XSRETURN_EMPTY; |
|
9344
|
400 |
4 |
while ((cur > base) && ((*(cur) == '\n') || (*(cur) == '\r'))) { |
|
|
10 |
390 |
while ((cur > base) && ((*(cur) == '\n') || (*(cur) == '\r'))) { |
|
|
0 |
390 |
while ((cur > base) && ((*(cur) == '\n') || (*(cur) == '\r'))) { |
|
9349
|
17344 |
127 |
while ((n++ < (sizeof(content)-1)) && (cur > base) && |
|
|
17218 |
126 |
while ((n++ < (sizeof(content)-1)) && (cur > base) && |
|
|
17077 |
141 |
while ((n++ < (sizeof(content)-1)) && (cur > base) && |
|
9350
|
17077 |
0 |
(*(cur) != '\n') && (*(cur) != '\r')) |
|
9355
|
29083 |
129 |
while ((col_cur > base) && (*(col_cur) != '\n') && (*(col_cur) != '\r')) |
|
|
28818 |
265 |
while ((col_cur > base) && (*(col_cur) != '\n') && (*(col_cur) != '\r')) |
|
|
28818 |
0 |
while ((col_cur > base) && (*(col_cur) != '\n') && (*(col_cur) != '\r')) |
|
9357
|
253 |
141 |
if ((*(cur) == '\n') || (*(cur) == '\r')) cur++; |
|
|
0 |
253 |
if ((*(cur) == '\n') || (*(cur) == '\r')) cur++; |
|
9358
|
129 |
265 |
if ((*(col_cur) == '\n') || (*(col_cur) == '\r')) col_cur++; |
|
|
0 |
129 |
if ((*(col_cur) == '\n') || (*(col_cur) == '\r')) col_cur++; |
|
9365
|
21663 |
148 |
while ((*cur != 0) && (*(cur) != '\n') && |
|
|
21612 |
51 |
while ((*cur != 0) && (*(cur) != '\n') && |
|
|
21612 |
0 |
while ((*cur != 0) && (*(cur) != '\n') && |
|
9366
|
21417 |
195 |
(*(cur) != '\r') && (n < sizeof(content)-1)) { |
|
9371
|
0 |
394 |
EXTEND(SP,2); |
|
9394
|
0 |
1 |
if ( pattern == NULL ) |
|
9396
|
1 |
0 |
if (ns_map) { |
|
9398
|
0 |
1 |
New(0,namespaces, last+2, xmlChar*); |
|
9399
|
2 |
1 |
for( i = 0; i <= last ; i++ ) { |
|
9401
|
2 |
0 |
namespaces[i]=(xmlChar*) SvPV_nolen(*aux); |
|
9411
|
0 |
1 |
if ( RETVAL == NULL ) { |
|
9422
|
0 |
34 |
if ( node ==NULL ) { |
|
9449
|
0 |
3 |
if ( regexp == NULL ) |
|
9456
|
0 |
2 |
if ( RETVAL == NULL ) { |
|
9469
|
0 |
8 |
if ( value == NULL ) |
|
9503
|
0 |
10 |
if ( pxpath == NULL ) |
|
9510
|
0 |
10 |
if ( RETVAL == NULL ) { |
|
9540
|
1 |
16 |
if (!SvOK(string)) { |
|
|
1 |
0 |
if (!SvOK(string)) { |
|
|
1 |
0 |
if (!SvOK(string)) { |
|
9542
|
1 |
15 |
} else if (!SvCUR(string)) { |
|
9545
|
15 |
0 |
realstring = (xmlChar*) SvPV(string, len); |
|
9546
|
15 |
0 |
if ( realstring != NULL ) { |
|
9549
|
0 |
15 |
if ( !DO_UTF8(string) && encoding != NULL ) { |
|
|
0 |
0 |
if ( !DO_UTF8(string) && encoding != NULL ) { |
|
|
15 |
0 |
if ( !DO_UTF8(string) && encoding != NULL ) { |
|
9555
|
0 |
15 |
if ( enc == 0 ) { |
|
9560
|
4 |
11 |
if ( enc == XML_CHAR_ENCODING_UTF8 ) { |
|
9567
|
10 |
1 |
if ( enc > 1 ) { |
|
9570
|
1 |
0 |
else if ( enc == XML_CHAR_ENCODING_ERROR ){ |
|
9576
|
1 |
10 |
if ( coder == NULL ) { |
|
9581
|
10 |
0 |
if ( xmlCharEncInFunc( coder, out, in ) >= 0 ) { |
|
9597
|
0 |
14 |
if ( !tstr ) { |
|
9628
|
1 |
8 |
if ( !SvOK(string) ) { |
|
|
1 |
0 |
if ( !SvOK(string) ) { |
|
|
1 |
0 |
if ( !SvOK(string) ) { |
|
9630
|
1 |
7 |
} else if (!SvCUR(string)) { |
|
9632
|
0 |
7 |
} else if ( !SvUTF8(string) ) { |
|
9636
|
7 |
0 |
realstring = (xmlChar*) SvPV(string, len); |
|
9637
|
7 |
0 |
if ( realstring != NULL ) { |
|
9640
|
0 |
7 |
if ( enc == 0 ) { |
|
9645
|
1 |
6 |
if ( enc == XML_CHAR_ENCODING_UTF8 ) { |
|
9653
|
4 |
2 |
if ( enc > 1 ) { |
|
9656
|
2 |
0 |
else if ( enc == XML_CHAR_ENCODING_ERROR ){ |
|
9663
|
0 |
6 |
if ( coder == NULL ) { |
|
9670
|
6 |
0 |
if ( xmlCharEncOutFunc( coder, out, in ) >= 0 ) { |
|
9680
|
0 |
6 |
if ( !tstr ) { |
|
9688
|
1 |
6 |
if ( enc == XML_CHAR_ENCODING_UTF8 ) { |