Re: [OT] XML
* Ivan Shmakov <email@example.com>, 2012-11-26, 14:32:
Seriously, XML takes a lot of concerns off an application programmer.
It provides quoting, arbitrary hierarchical structure, support for
different encodings, etc. Why, don't you think that $ grep
'[[:lower:]]' FILE is ever supposed to work? For surely it isn't: grep
has no way to know the encoding of the input file, and relies on the
locale instead. On the contrary, XML allows for the encoding to be
specified explicitly via a processing instruction. And then, there's
XPath, which takes the input dataset structure into account.
How do you search for a lowercase letter in XPath?