You are on page 1of 5

XML document is formed as an element trees.

An XML tree starts at a root element and


branches from the root to child elements. The terms grandparent, parent, child and sibling are
used to describe the relationship between elements.

This member detail is the root element of the document. In any language, the first element to
appear is called the root element. After the root element member detail is closed, no other
elements should follow because XML can only have one root element per file. Attributes are
always contained within the start tag of an element. Each XML can have at most one parent. An
XML document is usually indented in such a way as to make finding element’s parent very easy.
In XML, an element can have many children or no children.

Member is a grandparent element.

Member name is a parent element. There are 2 child elements, first name and last name.

Badges are a parent element. There are 3 child elements, badges. .


In XML, attributes are designed to contain data related to a specific element.

There are 3 attributes, id, progress and activity.

The encoding declaration identifies


which encoding is used to represent
the characters in the document.

There is need prefix ID like other member.


There is close tag in amount tag.
There is no need to give child element, guardian because
there is parent element.
It needs more child element about day because there is child
element of day for other member.

You might also like