I am trying to retrieve a value in App custom attributes.
<ExtractVariables async="false" continueOnError="false" enabled="true" name="ExtractAppAttributes"> <DisplayName>ExtractAppAttributes</DisplayName> <XMLPayload stopPayloadProcessing="false"> <Namespaces/> <Variable name="enabled" type="boolean"> <XPath>/App/Attributes/Attribute[Name='enable']/Value</XPath> </Variable> </XMLPayload> <Source clearPayload="false">AccessEntity.ae-Access-App-Info</Source> <VariablePrefix>app</VariablePrefix> </ExtractVariables>
I managed to get the value as true. But if I change the value to false, it didn't update here.
But If I use a type string, it always match accordingly.
How to let boolean work as well?
Thanks
Maybe you want the text() node?
<XPath>/App/Attributes/Attribute[Name='enable']/Value/text()</XPath>