I'd like to bind XML data to a table, but print only rows that have specific value in a child element. In example below I would like to print a table of ID and Name rows if item's type = A. What would be a binding path/condition?
I tried binding path like $.item.[typeParent.type=="A"] but it doesn't work at all.
<content>
<item>
<id>1</id>
<name>John</name>
<typeParent>
<type>A</type>
</typeParent>
</item>
<item>
<id>2</id>
<name>Alex</name>
<typeParent>
<type>B</type>
</typeParent>
</item>
<item>
<id>3</id>
<name>Bom</name>
<typeParent>
<type>A</type>
</typeParent>
</item>
</content>