Lists Home |
Date Index |
"Uche Ogbuji" <email@example.com> wrote in message
> Tim's article just made me roll my eyes. XML has made my life as a
> much easier, and i can't think of a developer whom I've mentored in using
> that doesn't have the same experience. I suspect that Tim has completely
> misplaced the actual problem.
> BTW, I find the idea of processing XML using simple regexen pretty hair
> raising. Holy impedance mismatch! Holy error prone! That's supposed to
> easier? My mind boggles.
Feeling exactly the same way.
How can someone speak in the name of *all* programmers?
Let me say:
XML is not hard at all for the majority of XSLT programmers -- as witnessed
e.g. on the xsl-list.
The reasons for this are not at all personal and subjective.
Certainly, processing an XML document as a single large string using regex
tricks has nothing to do with XML, therefore, the problem with any such
approach is not XML per se, but simply that this approach is deeply flawed.
To put things back into their right place:
1. An XML document is a representation of a tree of nodes.
2. There are powerful languages for processing such kind of tree-structured
data e.g. XSLT.
Surely, any attempt to regard a tree of nodes as a linear sequence of "start
tags" and "end tags" and to process it as such is an inherently masochistic
http://fxsl.sourceforge.net/ -- the home of FXSL