删除父节点标记,但保持子节点,xslt

时间:2017-11-26 11:19:14

标签: xslt parent

我的输入xml如下所示,我想删除节点<multimap:Message1>

<multimap:Messages xmlns:multimap="http://sap.com/xi/XI/SplitAndMerge">

但是想让孩子保持原样。

由于在multimpap和Message之间有特殊字符“:”,我无法删除此节点

<?xml version="1.0" encoding="UTF-8"?>
<multimap:Messages xmlns:multimap="http://sap.com/xi/XI/SplitAndMerge">`This one need to be removed`
    <multimap:Message1> `This one need to be removed`
        <EmployeeTime>
            <EmployeeTime>
                <externalCode>e82baef39</externalCode>
                <timeType>UK_MATERNITY</timeType>
                <userId>101046</userId>>
                <Holiday>
                    <date>2016-03-25</date>
                    <date>2015-04-06</date>
                    <date>2015-05-25</date>
                </Holiday>
            </EmployeeTime>
        </EmployeeTime>
    </multimap:Message1>`This one need to be removed`
</multimap:Messages>`This one need to be removed`

0 个答案:

没有答案