Child descendent axis, difference

Semantics

1. Difference between child and descendant

1.

Difference between child and descendant

Michael Kay.

The descendants of an element are the elements, text nodes, processing instructions,and comments (but not attributes) that occur textually between the start and end tags of the element in the source XML document. The children of an element X are those descendants of X that are not descendants of any descendant of X.