Poonam Jain
Why XML is so popular???
Posted by Poonam Jain in Web Development | XML on Apr 18, 2009
0
Do you know the answer for this question? Post it below.
Guest

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.




Posted by Jonathan Mole on Oct 02, 2010

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>

Posted by Pnarasimha narasima on Apr 21, 2009

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
igintesofthelp@gmail.com

Posted by Nikhil Kumar on Apr 18, 2009
Sponsored by
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | REPORT ABUSE © 2011 C# Corner. All contents are copyright of their authors.