How you define Tree Structure in XML?

How you define Tree Structure in XML?

 In XML document when we see wisely than we find that many relations come with in the XML document.

It has a root node.Those follows the root node called parent node and those follows this parent node called children.It create like tree type Structure.You have to follow those rules that I have given for making XML document with proper tree structure.

1.Descendant: Suppose that in your tree structure If element y is stored in x.Than we called y as the descendant of x.

2.Ancestor: If element y is stored in x.Than we called x as the ancestor of y.


By:Vivek
Date:2015-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related XML Subjective Links

XML Subjective interview questions and answers for experienced and fresher