elements of xml file system..

by barkkathulla 2012-09-22 11:47:53


EVERY VALID XML DOCUMENT MUST ALWAYS HAVE ONE SINGLE ELEMENT THAT ENTIRELY ENCLOSED ALL THE OTHER ELEMENTS IN THE DOCUMENT.THIS ELEMENT IS CALLED THE âROOTâ ELEMENT.

ELEMENTSTHAT ARE DIRECTLY CONTAINED WITHIN THE ROOT ELEMENT ARE SAID TO BE âNESTEDâ WITHIN THE ROOT ELEMENT.FURTHER ELEMENTS CAN BE NESTED WITHIN THOSE ELEMENTS TO FORM A SHORT OF HIERARCHY.

AN ELEMENT THAT IS ENCLOSED BY ANOTHER ELEMENT IS CALLED A âCHILDâ OF THE CONTAINING ELEMENT.CONVERSELY THE CONTAING ELEMENT IS CALLED THE âPARENTâ O FTHE ENCLOSED ELEMENT.

IN THE CODE SHOWN BELOW THE ROOT ELEMENT IS NAMED âPERSONNELâ .THE PERSONNEL ROOT ELEMENT CONTAINS TWO CHILD ELEMENTS THAT ARE EACH NAMED âENTRYâ.EACH ENTRY ELEMENT ENCLOSED ITS OWN CHILD ELEMENT CALLED âNAMEâ THAT CONTAINS SOME CONTANT DATA.

Tagged in:

557
like
0
dislike
0
mail
flag

You must LOGIN to add comments