Thursday, March 15, 2012

XML is a Step Backwards

XML has its place, like when transferring data between disparate systems.  But I can't help wondering if using it for things like the Android Manifest is a step backwards.  Why not use a programming language?  With XML, you lose a lot of the useful features of a programming language, like code-completion and interaction with the main code.

Taking the Android Manifest as an example, I have to refer to a list of the specific permissions that I require, since without code-completion it won't tell me the possible options.  These also have to be spelled exactly right.  Also, I'd like to change the icon based on some flags in the code.  Can I do this?  No, the XML is static.  Great!

1 comment:

Anonymous said...

You can have autocompletion for XML, too, if there's a DTD.
For example with jEdit and the XML-Plug-In, which also parses the XML file.

I just don't recommend jEdit, because it is a null pointer exception nightmare and is written in Java, which I got viruses which where hard to remove for and it is ugly.