I am keeping Asia as a parent element. Under that, I am keeping India and China as child elements. I want to fetch both of the countries by using velocity code.
Below is my code: I am using the method getChildren()
and I am getting only the first child and am unable to get its two children.
I have parent element as continent
and child elements as countries
.
#foreach ($cur_continent in $continent.getSiblings())
#foreach($countries in $cur_continent.getChildren())
$countries.getData()