"name" : "a",
"type": "container",
"kids": [{
"name": "a1",
"type": "container",
"kids": [{
"name": "a2",
"type": "leaf",
"when": "../a"
}]
}]
}
in when condition i want to validate in node ->parent ->parent is "a" Now how to validate that condition
If your content is XML and you want to check if the parent of the parent of the context is a
a, you can use this: