XML Tutorial.XML Tutorial.
XML Tutorial.
Online Training Online Training

Microsoft Office TrainingMicrosoft Office Skills Training
Business Skills Courses Business Skills Courses

Technical Courses Technical Courses

Networking Networking Training Courses

Java PHP C C++ Perl Training Java PHP C C++ Perl Training

Web Marketing Training Web Marketing Training

Database Training Database Training

Unix Training Unix Training

Online Aptitude Testing and computer Assessments Online Aptitude Testing and Assessments.

Personal Development Training Personal Development Training

Try our online computer training courses via distance learning.
Online Training Free Video Tutorials

Free video tutorials for Adobe photoshop. Adobe Photoshop
Free video tutorials for Dreamweaver. Dreamweaver
Free video tutorials for Flash. Flash
Free video tutorials for Html. Html
Free video tutorials for visual basic. Visual Basic
Free video tutorials for Perl. Perl
Free video tutorials for C++. C & C++

free IT Training and e-learning computer based training courses.
Online Training Assessments


Technical Courses Verbal Reasoning

aptitude Numerical Reasoning

Free Online Java Quiz

Online Computer Training, e-learning, free video tutorials.
Online Training Training Tools

free IT Training and e-learning courses. Course Manager
Try our online computer training courses and our e-learning cbt courses. System Manager


Computer Training & Webmaster forum - internet marketing and search engine forum
  

Click here to register for your free computer training courses.

Web Diretory | Sitemap | Blog

Try learningsteps.com online computer training courses and tutorial via online learning, online training.

The next three lines we create will describe the child elements of root element mail.

<title>Welcome To LearningSteps.com</title>
<to>fred@leanrningsteps.com</to>
<body>Hi Fred, Welcome To Leanringsteps.com</body>


XML element may contain attributes that are associated with the element for example

<mail date="21/10/2007"></mail>


In XML the attribute value must always be quoted like above.

Comments in XML

The syntax for writing comments in XML is similar to that of HTML.

<!-- This is a comment --> 


And finally the last line defines the end of the root element
</mail>


So here is our full example
<?xml version="1.0"? encoding="ISO-8859-1"?>
<mail>
<title author="fred">Welcome To LearningSteps.com</title>
<to>fred@leanrningsteps.com</to>
<body>Hi Fred, Welcome To Leanringsteps.com</body> </mail>



Before we continue you should remember a couple of golden rules when creating xml pages

  • XML Tags are Case Sensitive - Opening and closing tags must contain the same case i.e <mail> and </Mail> are different.
  • Element must be properly nested i.e
    <b><font color="#996699">Hello</font></b>
    - this will not work in XML as </b> should appear before </font>.
  • (3) All Xml documents must contain root elements


Congratulations you have created you first xml document now save it as mail.xml

Viewing xml documents

Viewing xml documents is different to viewing HTML pages what you get is color coded root and child elements, A plus (+) or minus sign (-) to the left of the elements can be clicked to expand or collapse the element structure.

Note: If your xml is formatted incorrectly the browser will throw an error telling you where the problem is.

free online unix tutorial
CBT
online computer courses

Copyright ©2007 LearningSteps.com Inc. Computer Based Training | E-Learning | CBT | IT Training

free IT Training and Cbt computer based training courses.

try our paid computer based training(cbt) or free computer training