The Register® — Biting the hand that feeds IT

Feeds

W3C squeezes XML into portability

Is that a schema in your pocket...

Magic Quadrant for Enterprise Backup/Recovery

Web-standards group the W3C has published its preferred standard for compressing XML documents into something more suitable for transmission over radio, and perhaps everywhere else too.

Efficient XML Interchange (EXI) originated with a company called AgileDelta, whose CTO is still editor of the specification which tokenises XML tags to create a significantly smaller binary file. That's easier for a computer to interpret as well as being quicker to transmit, which should lead to wider adoption of XML in embedded devices and let EXI supplant XML entirely in some applications.

Which would be no bad thing for the machines: XML is good at being human readable, and interoperable, but is horribly inefficient. XML documents contain huge amounts of replication and redundancy which we humans seem to enjoy, but it clogs up computers terribly and can be cut out with no loss of functionality.

There are already various ways of compressing XML documents: they can be zipped up for transmission, or use one of the various competing conversions that claim their own efficiencies. EXI can make use of the XML document's schema to create its compressed version, which makes encoding a little more complicated but simplifies decoding and increases the compression (so, for example, tags that only occur nested within different parents can share the same name).

With the W3C's blessing, EXI will be the standard with which to be seen, and there are already half a dozen open source and commercial implementations to play with, as long as you no longer need documents readable by our inefficient human brains. ®

Magic Quadrant for Enterprise Backup/Recovery

Oh Wow!

So, back in the olden days file formats were binary, small and efficient. Along rolls XML with it's nicely structured, human readable format, becoming the next big thing in file formats.

And now, the new big thing to address some of the issues surrounding XML (like file size, parser complexity, load speeds, etc) is a binary file format!

*sigh*

2
0

Why XML is good

XML is good because it preserves the semantics of data, as opposed to say a comma delimited file, and includes namespaces so it's easier to add to, or remove data from without then having to change the software wot consumes said data.

The human readable bit is just that you can view/create/update XML data with a simple text editor. Or pretty much any programming language since it's just a text file. This may not seem like a big deal, but if you're stranded managing a legacy system and you need it to talk to something else, things like this really matter.

But don't misinterpret "human readable" as meaning it is intended to be consumed by end-users.

On a similar note, building applications in HTML/CSS/JavaScript seems *really* dumb if you're approaching the problem as a "real" programmer, but the advantage is that the barrier to entry is much much lower. So it could be argued that Firefox because popular because it's extension mechanism was much easier to hack about with. XML does the same for exchange of data.

Is XML efficient? Nope. But that wasn't the intent. But it is useful as a data exchange format that's easy to work with -- easy as in lower barrier to entry.

2
0

About time too

Why anyone thought that XML was a good way to exchange large amounts of data is a mystery to me.

But, hey, storage is getting cheaper and processors are getting faster all the time so why bother to come up with an encoding that is space efficient and quick to parse when you have something as horredously inefficient as XML.

2
0

More from The Register

 breaking news
UK telcos chuck another £1m at online child abuse watchdog
Web enforcers IWF gain power to seek and destroy illegal content
 breaking news
Pttow! Ofcom kicks hams out of MoD bands
Geet off my land, you, you ... 'secondary user'
 breaking news
UK.gov's £530m bumpkin broadband rollout: 'Train crash waiting to happen'
Whitehall whispers of damning watchdog report next month
Google launches broadband balloons, radio astronomy frets
A careless Loon could blind the square kilometre array
 breaking news
MySpace zaps millions of teens' tearful rants, causes wave of angst
'Your crappy redesign SUCKS, I wanna read my blogs' screech users
 breaking news
Microsoft Office 365 on iPhone NOW: No, we're not making this up
Word, Excel, Powerpoint for your pocket-stroker
Increased cell phone coverage tied to uptick in African violence
'Significantly and substantially increases the probability of violent conflict'
 breaking news
EU signs off on eCall emergency-phone-in-every-car plan
GPS and a mobe in every car - do you suppose the NSA would fancy that?