XML Tutorial

XML – Why and Its Uses


XML stands for Extensible Markup Language.
Why use XML


Suppose, communication is to be established between applications by sending messages. Application A wants to send first names and last name of students to application B and B on receiving the message should acknowledge it sending message “Accepted”. There are many different message formats in which application A can send message to application B. They won’t be able to properly communicate until a proper message structure is defined between application A and B.

Thus, XML defines a message structure for the data that needs to be communicated between different applications.

Other Uses of XML


  • XML can be used to store data.
  • Better for rendering data in a structure format, i.e. records and lists and trees
  • Its is used by many programming tools/software.
  • Can be used to render HTML
Why XML is so widely used


  • Validation – XML allows validation of its data and structure using XSD or Schema.
  • Searchable – Content inside XML can be easily searched using XPATH or XQuery
  • Transformation – XSLT can be used to transform data in XML into desired format.
  • Parsing – XML has Parsing standards: DOM, SAX, StAX
Example of XML


<student>
  <firstname>Varun</firstname>
  <lastname>Goel</lastname>
</student>

 


About Varun Goel

Varun Goel is a technology enthusiast with 6+ years exp in IT industry. In fact, he is been developing application after schooling as freelancer. Currently working with one of the Fortune’s 100 Companies having vast experience Mule ESB, Tibco, HTML5, CSS, JSS, Android, Core Java, JSP, PHP, MySQL, AutoCAD, Maya, ZBrush, Photoshop, Flash CS and many more.

Leave a Reply

Your email address will not be published.