Saturday, 29 April 2017

XML Tree structure

The tree structure is often referred to as XML Tree and plays an important role in describing any XML document.
the tree structure contains root (parent) elements, child elements and so on. by using tree structure, you can get to know all succeeding branches and sub-branches starting from the root.


For Example:
<?xml version="1.0"?>
<contact-info>
<address category="residence">
<name>kumar shivan</name>
<company>HCL pvt ltd</company>
<phone>(001)123-4567</phone>
<address/>
</contact-info>
 In this example The <contact-info> is the root element and child element are its branches.

No comments:

Post a Comment