<store>
<product>
PS4
</product>
</store>
<store> ... </store>
----> Root element<product> ...</product>
----> Element within the root element<Food>
<Fruits>
<Fruit1>
Coconut
</Fruit1>
<Fruit2>
PineApple
</Fruit2>
</Fruits>
</Food>
<Food> ... </Food>
----> Root element; enclosing all other elements<Fruits>...</Fruits>
----> Child of root element Food<Fruit1> ... </Fruit1>
----> Subchild of the root element Food<Fruit2> ... </Fruit2>
----> Subchild of the root element Food<store>
<Game category="PS4">
<Title>
Driveclub
</Title>
</Game>
<Game category="Xbox One">
<Title>
Froza Horizon 2
</Title>
</Game>
</store>
category="PS4"
----> attributecategory="Xbox One"
----> attribute
XML elements:
<...> </...>
<A>...</A>
is different from <a>...</a>
<a>
<b>...</b>
<a>
<a>
<b>...</a>
</b>
<game category="PS4">...</game>
<!-- Hello World -->
<!--
-----> Start of the comment.Hello World
----> Comment-->
----> End of the comment.<root>
<f:table xmlns:f="FruitsURI">
<f:tr>
<f:td>Coconuts</f:td>
</f:tr>
</f:table>
<f:
----> Applying the prefix.xmlns:f="Fruitsurl"
----> Defining a unique namespace; example a specific url for that prefix "f".<v:table xmlns:v="Vegitablesurl">
<v:name>Carrots</v:name>
</v:table>
xmlns:v="Vegitablesurl"
----> A different prefix used for a different kind of information.</root>