Get value from Foscam ipcamera

Hello,

I recently bought a Homey Pro and I’m trying to get the same flows which I had on Openhab(Rules). But I cannot figure out how I can get the value of a xml output:

<CGI_Result>
    <result>0</result>
    <IOAlarm>0</IOAlarm>
    <motionDetectAlarm>1</motionDetectAlarm>
    <soundAlarm>1</soundAlarm>
    <record>0</record>
    <sdState>0</sdState>
    <sdFreeSpace>0k</sdFreeSpace>
    <sdTotalSpace>0k</sdTotalSpace>
    <ntpState>1</ntpState>
    <ddnsState>0</ddnsState>
    <url>http%3A%2F%2Fhi6745.myfoscam.org%3A88</url>
    <upnpState>0</upnpState>
    <isWifiConnected>0</isWifiConnected>
    <wifiConnectedAP></wifiConnectedAP>
    <infraLedState>0</infraLedState>
</CGI_Result>

I want to value of motionDetectAlarm as a trigger in a flow.
Can anyonen help me with that?

Thanks