Hi,
I want to define schema structure which forms dynamically. I mean in my Filter criteria I have Expression in that I have LeftOperand, Operator and RightOperand. When I want to apply filters I add more Expressions in my xml instance and this will be inside one of the Operands (Left or Right). How can I define my Expression record so it can be defined N number of times and it has form inside Operands. Below is the sample, here number of expressions are dynamic they can increase or decrease.
<Filter>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<PropName>CustLinkMode</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>Linked</Val>
</Literal>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>ProductStatus</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>Active</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>CustomerNumber</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>000341746</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>InquiryMode</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>Extended</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>IncludeTransferFlag</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>bolean</Type>
<Val>True</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>ProdListType</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>All</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</Filter>
I want to define schema structure which forms dynamically. I mean in my Filter criteria I have Expression in that I have LeftOperand, Operator and RightOperand. When I want to apply filters I add more Expressions in my xml instance and this will be inside one of the Operands (Left or Right). How can I define my Expression record so it can be defined N number of times and it has form inside Operands. Below is the sample, here number of expressions are dynamic they can increase or decrease.
<Filter>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<Expression>
<LeftOperand>
<PropName>CustLinkMode</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>Linked</Val>
</Literal>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>ProductStatus</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>Active</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>CustomerNumber</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>000341746</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>InquiryMode</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>Extended</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>IncludeTransferFlag</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>bolean</Type>
<Val>True</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</LeftOperand>
<Operator>
<Type>Logical</Type>
<Val>And</Val>
</Operator>
<RightOperand>
<Expression>
<LeftOperand>
<PropName>ProdListType</PropName>
</LeftOperand>
<Operator>
<Type>Comparison</Type>
<Val>Equal</Val>
</Operator>
<RightOperand>
<Literal>
<Type>string</Type>
<Val>All</Val>
</Literal>
</RightOperand>
</Expression>
</RightOperand>
</Expression>
</Filter>