Я хочу найти отдельное значение тега в полезной нагрузке XML.
Образец полезной нагрузки
<?xml version = '1.0' encoding = 'UTF-8'?>
<ns0:execute xmlns:ns1="http://some.url" xmlns:ns2="http://xmlns.oracle.com/cloud/adapter/connectivityproperties/REST/PostData_REQUEST/RESTOUTREQ" xmlns:ns0="http://xmlns.oracle.com/cloud/adapter/REST/PostData_REQUEST/types">
<ns1:processInterfaceLine>
<ns1:interfaceLine>
<ns1:customerOrderNumber>customerOrderNumber22387</ns1:customerOrderNumber>
<ns1:metallurgistName>metallurgistName22388</ns1:metallurgistName>
<ns1:jobNumber>jobNumber22389</ns1:jobNumber>
<ns1:emsProgressInvoiceNumber>emsProgressInvoiceNumber22390</ns1:emsProgressInvoiceNumber>
</ns1:interfaceLine>
<ns1:interfaceLine>
<ns1:customerOrderNumber>customerOrderNumber22388</ns1:customerOrderNumber>
<ns1:metallurgistName>metallurgistName22388</ns1:metallurgistName>
<ns1:jobNumber>jobNumber22389</ns1:jobNumber>
<ns1:emsProgressInvoiceNumber>emsProgressInvoiceNumber22390</ns1:emsProgressInvoiceNumber>
</ns1:interfaceLine>
<ns1:interfaceLine>
<ns1:customerOrderNumber>customerOrderNumber22387</ns1:customerOrderNumber>
<ns1:metallurgistName>metallurgistName22388</ns1:metallurgistName>
<ns1:jobNumber>jobNumber22389</ns1:jobNumber>
<ns1:emsProgressInvoiceNumber>emsProgressInvoiceNumber223901</ns1:emsProgressInvoiceNumber>
</ns1:interfaceLine>
</ns1:processInterfaceLine>
</ns0:execute>
Я хочу вывод, как показано ниже: Я хочу отличные значениятолько на основе тега customerOrderNumber . Не весь выигрыш.
Желаемый результат ::
<?xml version = '1.0' encoding = 'UTF-8'?>
<ns0:execute xmlns:ns1="http://some.url" xmlns:ns2="http://xmlns.oracle.com/cloud/adapter/connectivityproperties/REST/PostData_REQUEST/RESTOUTREQ" xmlns:ns0="http://xmlns.oracle.com/cloud/adapter/REST/PostData_REQUEST/types">
<ns1:processInterfaceLine>
<ns1:interfaceLine>
<ns1:customerOrderNumber>customerOrderNumber22387</ns1:customerOrderNumber>
<ns1:metallurgistName>metallurgistName22388</ns1:metallurgistName>
<ns1:jobNumber>jobNumber22389</ns1:jobNumber>
<ns1:emsProgressInvoiceNumber>emsProgressInvoiceNumber22390</ns1:emsProgressInvoiceNumber>
</ns1:interfaceLine>
<ns1:interfaceLine>
<ns1:customerOrderNumber>customerOrderNumber22388</ns1:customerOrderNumber>
<ns1:metallurgistName>metallurgistName22388</ns1:metallurgistName>
<ns1:jobNumber>jobNumber22389</ns1:jobNumber>
<ns1:emsProgressInvoiceNumber>emsProgressInvoiceNumber22390</ns1:emsProgressInvoiceNumber>
</ns1:interfaceLine>
</ns0:execute>