Poonam Jain
Why XML is so popular???
By Poonam Jain in XML on Apr 18 2009
  • Munesh Sharma
    Oct, 2014 13

    http://www.informit.com/articles/article.aspx?p=27284

    • 1
  • Munesh Sharma
    Oct, 2014 13

    Xml is great for what it was designed to be -- a platform neutral, human readable data transfer protocol with some capabilities to enforce data validation at low levels. I doubt anyone who uses Xml in this manner has a real complaint. Is it the most succint wire format? No. But there are worse options. Is it as fast as reading your custom binary format? No. But your business partners can read it in whatever stack they are using.The problem, however, is that man -- especially the breed known as enterprise architects -- is evil and takes good things and makes them bad. In the case of Xml, the early part of this century saw Xml as the universal hammer for every IT problem. Sprinkle in a little design by committee and you end up with some horrible monstrosities like SOAP and oXML. Neither of which should be wished on enemies, nevermind friends or colleagues.

    • 0
  • Jonathan Mole
    Oct, 2010 2

    xml is larger than flatfiles, but now that harddrives are so cheap, memory is less expensive and networks faster, the extra size associated with XML in most cases is not an issue.
    The benefits of XML over flatfiles is that you can have sub records easily, and you can add in extra details without having to rewrite programs.

    e.g.
    imagine a csv with order details
    a line might contain company, address, order number, quantity, weight
    with a flatfile you would either have to encode a type for each line, or duplicate data per line
    company 1, addressline 1, address line 2, order number1, quantity, weight.
    company 1, addressline 1, address line 2, order number2, quantity, weight.
    company 1, addressline 1, address line 2, order number3, quantity, weight

    or something like
    Company Line,company 1, addressline 1, address line 2
    order line,order number1, quantity, weight.
    order line,order number2, quantity, weight.
    Company Line,company 2, addressline 1, address line 2
    order line,order number1, quantity, weight.
    order line,order number2, quantity, weight.

    as soon as you put this into xml, you can explore the data in a tree structure.
    You have an easy to see hierarchy.
    You can add extra data knowing that any changes will not cause problems with your customers programs. e.g. I could add in pallet weight on each order, or sub details under quantity, and their old systems would still work, but when they decided to, they could pull in the new details.

    The format of a document can be saved easily, and all new documents can be compared against it.
    As tags are balanced, it is easy to see if the file is corrupted.
    You can mount an xml document, and query it like a database.

    The file can be read by a human. This may sound odd, but if you work in a company where you are often asked to check files, the ability to open it up, then search for a tag can save hours of work compared to trying to work out what is wrong with a binary file.

    Once you have set up objects in C# you can export details in XML. This means that as you code, you are just filling in object details, will all the joys of Visual Studio error handling, you then make a simple call to save the file down. With this you know your structure will be 100% correct.

    You can query xml files with LINQ once you have loaded them. (I have never done this, but have been told it)

    The list goes on, but there are some reasons to start you off.




    • 0
  • laxmikant Mishra
    Jun, 2010 12

    XML - Xtensible markup language. It is used for Exchanging data  either over  Web Application or Windows Application (StandAlone Pc).

    It is Plateform Independent

    One more thing aboout it that it exchange the message dynamicaly and html is used for statically.

    Xml is supported by ado.net but ado does not support Xml

    • 0
  • zxcoder
    Jun, 2010 3

    It also forms the basis of exchanging data within applications running on the same machine or on different computers .Web services can be used for that and note that they use XML to do that

    • 0
  • P Narasimha
    Apr, 2009 21

    XML : XML is extenctiable markup language.
     XMl can be Access any platform like Java,>net, Sap etc,
     XML is case senstive .
     xml is save data in file formates like
    <empdata>
    <empno>444</empno>
    <empname>aaaa</empname>
    </empdata>

    • 0
  • Nikhil Kumar
    Apr, 2009 18

    xml is popular because it can be run on any platform..
    it is accepted by all companies as a language to get order and giving order it is world wide accepted laguage .
    it can run on mobile also.
    for more
    [email protected]

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS