Commit 79af9a1
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 3fabed0 commit 79af9a1
4 files changed
+55
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
3599 | 3600 | | |
3600 | 3601 | | |
3601 | 3602 | | |
3602 | | - | |
| 3603 | + | |
3603 | 3604 | | |
3604 | 3605 | | |
3605 | 3606 | | |
3606 | 3607 | | |
3607 | 3608 | | |
3608 | 3609 | | |
| 3610 | + | |
3609 | 3611 | | |
3610 | 3612 | | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
3611 | 3625 | | |
3612 | 3626 | | |
3613 | | - | |
| 3627 | + | |
3614 | 3628 | | |
3615 | 3629 | | |
3616 | 3630 | | |
3617 | 3631 | | |
| 3632 | + | |
3618 | 3633 | | |
3619 | 3634 | | |
3620 | 3635 | | |
3621 | 3636 | | |
| 3637 | + | |
3622 | 3638 | | |
3623 | 3639 | | |
3624 | 3640 | | |
| |||
3660 | 3676 | | |
3661 | 3677 | | |
3662 | 3678 | | |
3663 | | - | |
| 3679 | + | |
| 3680 | + | |
3664 | 3681 | | |
3665 | 3682 | | |
3666 | 3683 | | |
| |||
3679 | 3696 | | |
3680 | 3697 | | |
3681 | 3698 | | |
3682 | | - | |
| 3699 | + | |
| 3700 | + | |
3683 | 3701 | | |
3684 | 3702 | | |
3685 | 3703 | | |
| |||
3881 | 3899 | | |
3882 | 3900 | | |
3883 | 3901 | | |
3884 | | - | |
| 3902 | + | |
3885 | 3903 | | |
3886 | | - | |
| 3904 | + | |
3887 | 3905 | | |
3888 | 3906 | | |
3889 | 3907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
615 | 630 | | |
616 | 631 | | |
617 | 632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
517 | 529 | | |
518 | 530 | | |
519 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
0 commit comments