Can i use a Variable for the value StripLevels in the XMLToJSON policy

Not applicable

Is it possible to set in the XMLToJSON policy a variable in the option StripLevels? I receive the following error "Schema validation failed. Cause : Not a number:" when i use the following configuration:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XMLToJSON async="false" continueOnError="false" enabled="true" name="XML2JSON">
    <DisplayName>XML2JSON</DisplayName>
    <Properties/>
    <OutputVariable>request.content</OutputVariable>
    <Source>request.content</Source>
    <Options>
        <RecognizeNumber>true</RecognizeNumber>
        <RecognizeBoolean>true</RecognizeBoolean>
        <RecognizeNull>true</RecognizeNull>
        <NullValue>NULL</NullValue>
        <StripLevels>(CEVars.xmlstripe)</StripLevels>
    </Options>
</XMLToJSON>

The value 1 is set in the variable "CEVars.xmlstripe".

7096-var.png

0 2 125
2 REPLIES 2

@Daniel Bladeck

Could you please try the below one and see if it works.

<StripLevels>{CEVars.xmlstripe}</StripLevels>

Not applicable

This does not work either. It is the same error message.

Please look at the Screenshot var-1.png