Nesting Elements : Well Formed « Introduction « XML Tutorial






None of your sets of tags should overlap any other set.
Each interior set should be completely enclosed within the next larger set. 
You can nest as many levels of elements as you like.

<animal>
  <animal>
    <name>T1</name>
    <project>project1</project>
    <weight>3 points</weight>
  </animal>
</animal>








1.3.Well Formed
1.3.1.XML documents must adhere to certain rules to be well formed.
1.3.2.XML Naming Conventions
1.3.3.Case Sensitivity
1.3.4.Writing Non-Empty Elements
1.3.5.Nesting Elements
1.3.6.Empty Elements