Question: How you define relationship among nodes?
Answer: I have told you types of nodes. Example: <book> <title>Parallel Algorithm</title> <author>Rashmi Sharma</author> <year>2008</year> <price>150.00</price> </book>
Parent : Only one parent node has possible with each element and attribute. In above example we can say that book element is the parent of title, author, year, and price.
Question:
How you define relationship among nodes? Answer:
I have told you types of nodes. Example: <book> <title>Parallel Algorithm</title> <author>Rashmi Sharma</author> <year>2008</year> <price>150.00</price> </book>
Parent : Only one parent node has possible with each element and attribute. In above example we can say that book element is the parent of title, author, year, and price. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.