0
Iam new to groovy, так как часть моей задачи мне нужно обновить xml.Удалить часть xml с помощью groovy с xml sluper
Мой XML является ::
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<root xmlns="">
<queries>
<query list="true" type="Query">
<retrieve extent="3" offset="0" size="10000" subtype="uk.co.netdev.icr.provisioning.data.Corp">
<criteria list="true" type="Criteria">
<string-criteria expression="IAS" field-name="name"/>
</criteria></retrieve></query>
</queries></root></in0></soapenv:Body></soapenv:Envelope>
Из этого XML мне нужно удалить somepart из XML и должен напечатать вывод, как ::
<root xmlns=""><queries><query list="true" type="Query"><retrieve extent="3" offset="0" size="10000" subtype="uk.co.netdev.icr.provisioning.data.Corp"><criteria list="true" type="Criteria"><string-criteria expression="IAS" field-name="name"/></criteria></retrieve></query></queries></root>
пожалуйста, предложить, Спасибо.