Commit c8ef5b1
committed
Fix namespace handling in xpath function
Previously, the xml value resulting from an xpath query would not have
namespace declarations if the namespace declarations were attached to
an ancestor element in the input xml value. That means the output value
was not correct XML. Fix that by running the result value through
xmlCopyNode(), which produces the correct namespace declarations.
Author: Ali Akbar <the.apaan@gmail.com>1 parent 6bf343c commit c8ef5b1
4 files changed
+55
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
3593 | 3594 | | |
3594 | 3595 | | |
3595 | 3596 | | |
3596 | | - | |
| 3597 | + | |
3597 | 3598 | | |
3598 | 3599 | | |
3599 | 3600 | | |
3600 | 3601 | | |
3601 | 3602 | | |
3602 | 3603 | | |
| 3604 | + | |
3603 | 3605 | | |
3604 | 3606 | | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
3605 | 3619 | | |
3606 | 3620 | | |
3607 | | - | |
| 3621 | + | |
3608 | 3622 | | |
3609 | 3623 | | |
3610 | 3624 | | |
3611 | 3625 | | |
| 3626 | + | |
3612 | 3627 | | |
3613 | 3628 | | |
3614 | 3629 | | |
3615 | 3630 | | |
| 3631 | + | |
3616 | 3632 | | |
3617 | 3633 | | |
3618 | 3634 | | |
| |||
3654 | 3670 | | |
3655 | 3671 | | |
3656 | 3672 | | |
3657 | | - | |
| 3673 | + | |
| 3674 | + | |
3658 | 3675 | | |
3659 | 3676 | | |
3660 | 3677 | | |
| |||
3676 | 3693 | | |
3677 | 3694 | | |
3678 | 3695 | | |
3679 | | - | |
| 3696 | + | |
| 3697 | + | |
3680 | 3698 | | |
3681 | 3699 | | |
3682 | 3700 | | |
| |||
3880 | 3898 | | |
3881 | 3899 | | |
3882 | 3900 | | |
3883 | | - | |
| 3901 | + | |
3884 | 3902 | | |
3885 | | - | |
| 3903 | + | |
3886 | 3904 | | |
3887 | 3905 | | |
3888 | 3906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
586 | 601 | | |
587 | 602 | | |
588 | 603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
501 | 513 | | |
502 | 514 | | |
503 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
0 commit comments