Structural Search for XML - find element with child
I want to find all <table> elements which do not have <actions> element as their children.
Consider following example:
file1.xml:
<table>
<columns>...</columns>
<actions>...</actions>
</table>
file2.xml:
<table>
<columns>...</columns>
</table>
I'm looking for search expression which will match file2.xml. Is it possible?
Please sign in to leave a comment.
Hi.
I don't know much about Structural Search, but this can be achieved using XPath plugin (bundled).
If it's enabled, try Find by XPath action. Expression like "//table[count(actions)=0]" (maybe better one, if you have an idea) should help.
Regards,
Alexander.