<ns2:createOrder>
<ns2:serviceResponseContext >
<interactionId></interactionId>
<requestId>5</requestId>
<requestReceivedTimestamp>Mon Jul 15 10:06:45 MDT
</requestReceivedTimestamp>
<responseGeneratedTimestamp>Mon Jul 15 10:07:29 MDT </responseGeneratedTimestamp>
<serverHostPort></serverHostPort>
<serviceDuration>44541</serviceDuration>
<statusCode>0</statusCode>
</ns2:serviceResponseContext>
<ns2:createOrderResponse>
<ns2:statusLog>
<ns2:createOrderStep>PROVISION_CODE</ns2:createOrderStep>
<ns2:statusCode>0</ns2:statusCode>
<ns2:message></ns2:message>
</ns2:statusLog>
<ns2:statusLog>
<ns2:createOrderStep>VISION_CODE</ns2:createOrderStep>
<ns2:statusCode>0</ns2:statusCode>
<ns2:message></ns2:message>
</ns2:statusLog>
<statusCode>
只有当 statusCode=0<statusCode>
应该在<createOrder>
使用正则表达式中时,我才需要从 XML 文件中提取第一个。
我只需要第一个<statusCode>0<statusCode>
而忽略里面的其他人<createOrderStep>
谢谢您的帮助 !!