Global GuideLine Home HTML Tutorial JavaScript Tutorial SQL Tutorial CSS Tutorial SEO Tutorial XML Tutorial XSLT Tutorial Articles Tutorial Interview Questions and Answers Guide Jobs GuideLine Bookmark With Google Bookmark With Yahoo Bookmark With FaceBook Bookmark With Live Follow @GlobalGuideLine on Twitter Bookmark Global GuideLine
XML Tags Guide, XML Tutorial, Global Guideline

Bookmark Bookmark: XML Tags Guide, XML Tutorial
Global Guideline is UNITED STATES's favorite website


      Home                    

Basic XML Guide.       
 XML Introduction.       
 XML Tags Guide.
 XML Attributes.           
 XML Syntax Guide.    
 XML Compilation.      
 XML Execution.          
 XML with CSS.           
 XML with XSL.            
 XML Data Island.        
 XML Professional.       
 XML with JavaScript. 
 XML Namespaces.      
 XML CDATA.              
 XML Editors.               
 XML Summary.           

XML Tutorial >> XML Tags Guide.


     Back             Next     



Now in XML Tutorial we will learn that XML tags are extensible and they have standard way to use these tags. XML tags have simple naming rules.  XML document can be extend as the data comes in. 
For more explanation follow the below example.

XML Tags Example

<employee>
  <firstName>Creston</firstName>
  <lastName>Narvon</lastName>
  <gender>m</gender>
  <DOB>22/04/1976</DOB>
</employee>

Assume that in an organization number of employees are working and we need to show there data in XML then first of all we need to define the structure of the XML Document. For example.

Structure of an XML Document

<globalGuideLine>
  <employee>
     <firstName>Creston</firstName>
     <lastName>Narvon</lastName>
     <gender>m</gender>
     <DOB>22/04/1976</DOB>
   </employee>
  <employee>
     <firstName>Austin</firstName>
     <lastName>Hennery</lastName>
     <gender>m</gender>
     <DOB>24/11/1978</DOB>
   </employee>
  <employee>
     <firstName>Angela</firstName>
     <lastName>Julie</lastName>
     <gender>f</gender>
     <DOB>11/12/1977</DOB>
   </employee>
</globalGuideLine>

Note that in above example we define an extra tag as <globalGuideLine> and close it also proper as we opened it here we repeat the <employee> tag as we need the records of employees at Global Guide Line.  So the tags and structure is not predefined here we just need to follow the standards of XML.  And the next need is to develop some kind of application or software that can display the XML data in well organized form as shown in below.

Global Guide Line Employees Information.

First Name    :  Creston
Last Name    :  Narvon
Date of Birth  :  22/04/1976
Gender           :  Male

.......

.......
and so on...
 

Observe that all the XML tags are related to each other and no irrelative tag is used here.  So the XML tags will be similar to each other and showing a keen relation ship among them.

So the conclusion is this that no strict role is to define XML Tags, we learned in this section of XML Tutorila.  Just follow the conventions of XML like close each tag properly and XML proper syntax we will lean in next lesson, it is case sensitive so when ever w open an XML tag close it as it was opened.  Details of XML tags conventions we can see in XML Syntax section of our XML Tutorial.


     Back             Next     
 
In order to link this page as Reference, click on below text area and pres (CTRL-C) to copy the code in clipboard or pres right click then copy the following lines after that past into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code:

[ About ] [ Contact ] [ Home ]
[ Links ] [ Site Map ] [ Services ] [ Privacy ]

Copyright © 2005-2006 www.globalguideline.com All rights reserved. 458 visitors are online now