I have input stream as wso2event on wso2 SP, and it contain timestamp and payload. Payload is in xml format. How can I parse this payload to variables? I see this doc https://wso2-extensions.github.io/siddhi-map-xml/api/4.0.11/ but i don't know, how get incoming wso2event to sourcemapper and then pars it to variables?
siddhi-map-* extensions are used to map input/output event attributes at the source/sink level.
Since this xml payload is an attribute of another stream, you can use siddhi-execution-map extension to create a map from that xml.
Then you can handle the xml payload as a hashmap within the siddhi app.
Please refer to the documentation[1] for more details on this.