Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Before XML became a standard and given all its shortcomings, what made XML so popular?

Yes XML is human readable but so is comma delimited text and properties files.

XML is bloated, hard to parse, hard to modify in code, plus a ton of other problems that I can think about with it.

My questions is what are XML's most attractive qualities that has made it so popular????

like image 694
Autobyte Avatar asked Sep 22 '08 17:09

Autobyte


People also ask

What did people use before XML?

In fact, the technology isn't very new. Before XML there was SGML, developed in the early '80s, an ISO standard since 1986, and widely used for large documentation projects. The development of HTML started in 1990.

What makes XML so appealing?

Because XML brings sophisticated data coding to Web sites, it helps companies integrate their information flows. By creating a single set of XML tags for all corporate data, information can be shared seamlessly among Web sites, databases, and other back-end systems.

Why was XML developed?

XML, in full extensible markup language, a document formatting language used for some World Wide Web pages. XML began to be developed in the 1990s because HTML (hypertext markup language), the basic format for Web pages, does not allow the definition of new text elements; that is, it is not extensible.


2 Answers

It was the late 90s and the internet was hot hot hot, but companies had systems that couldn't get anywhere near the internet. They had spent countless hours dealing with CORBA and were plotting using Enterprise JavaBeans to get these older systems communicating with their newer systems.

Along comes SGML, which is the precursor to almost all markup languages (I'm skipping GML). SGML was already used to define how to define HTML, but HTML had particular tags that HAD to be used in order for Netscape to properly display a given webpage.

But what if we had other data that needed to be explained? Ah ha!

So given that XML is structured, and you can feel free to define that structure, it naturally allows you to build interfaces (in a non-OO point of view). It doesn't really do anything that other interface languages already do, but it gave people the ability to design their own definitions.

Interface languages like X12 and HL7 existed for sure, but with XML people could tailor it to their individual AIX or AS/400 systems.

And with the predominance of tag language because of HTML, well it was just natural that XML would get pushed to the forefront because of its ease of use.

like image 192
nathaniel Avatar answered Nov 23 '22 10:11

nathaniel


One of the major advantages it has over things like CSV files is that it can represent hierarchical data easily. To do this you either need a self-describing tree structure like XML, or a pre-defined format such as SWIFT or EDI (and if you've ever dealt with either of those, then you'll realise that XML is trivial to parse in comparison).

One of the reasons it's actually quite easy to parse is because it's 'bloated'. Those end tags mean that you can accurately match the end of elements to the start and work out when the tree has become unbalanced. You can't do that in the 'lightweight' alternatives such as JSON.

Another reason it's easy to parse is because it has had full support for Unicode encodings from the start, so you don't have to worry about what the default code page is on the target system, or how to encode multi-byte characters, because that information is all contained within the document.

And let's not forget about the other artefacts that came with it like the defined description and validation mechanism (XSD) and the powerful and declarative transformation mechanism (XSLT).

like image 34
Greg Beech Avatar answered Nov 23 '22 10:11

Greg Beech