Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail

The well-formed XML document has one or more element: root element, parent elements, and child elements. The XML document in the following list starts and ends with a root element, but the name of the element can be anything. All the elements are properly formatted with a start and end tag or empty tag. The child elements are nested within the parent element, and all element are within the root element.

<root>

<parent>

<child>

<grandchild />

</child>

</parent>

</root>