'how to get xpath rule for this case

I have the following xml case I want to be sure that the first use of logger-connector [which is inside async and inside flow] contains doc:name="REQUEST_CACHING" and the last one contains doc:name="FLOW_RESPONSE"

how to solve it using XPATH 1.0 I tried to use different scripts and test using http://xpather.com/ but none of them worked

<flow name="post:\v2\requests:application\json:ajeer-logistics-app-config">
       <async doc:name="Async" doc:id="163c4c7a-24a5-4487-93fd-cd920f728c3b">
            <logger-connector:log doc:name="REQUEST_CACHING" doc:id="5a313695-70e9-4fa1-b6a0-c4fa687c9a15" config-ref="Logger_connector_Config" app-name="#[app.name]" operation-name="submit-permit" step="REQUEST_CACHING" correlation-id="#[correlationId default &quot;&quot;]" time="#[now() as String]" client-id="#[attributes.headers['client_id'] default &quot;&quot;]" client-ip="#[attributes.remoteAddress default &quot;&quot;]" />
        </async>
<async>
other ASYNCs here taht could contain logger connector also 
</async>
          <async doc:name="Async" doc:id="ffa89857-5912-41dd-8a65-fbb2ab898fbe">
            <logger-connector:log step="FLOW_RESPONSE" doc:name="FLOW_RESPONSE" doc:id="caa0e000-4c07-4866-9121-488062518b68" config-ref="Logger_connector_Config" app-name="#[app.name]" operation-name="submit-permit" correlation-id="#[correlationId default &quot;&quot;]" time="#[now() as String]" client-id="#[attributes.headers['client_id'] default &quot;&quot;]" client-ip="#[attributes.remoteAddress default &quot;&quot;]" target="logVar" />
        </async>
     </flow>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source