XML – Descendant

In the XML family tree , descendant can be identified as the inner element of every outer elements in the hierarchy. For suppose, if we have 2 elements called element A , element B and if the element A is the outer element of element B, then element B will be called as descendant of element A.

Please find the below example and identify the descendants of element “employee_list”.

Below figure shows the descendants of element “employee_list”. XML - descendent element-i2tutorials.com