check xml payload with irule to route to pools

Hello out there,

I need an irule to check xml for this: 1 then, if value is 1, send to pool x, else, pool y.

They are not prvoding me with xml prefix, so I can’t use xml profile and xpatch queries. Not sure if this can be done or not. I believe I am checking the xml payload, if that helps.

Any help would be greatly appreciated.

Have you checked this out ?