Lists Home |
Date Index |
Dimitre Novatchev wrote:
> To put things back into their right place:
> 1. An XML document is a representation of a tree of nodes.
I looked in the XML spec an couldn't find anything to back that
claim. I had to go down to E (non-normative) to find the use of the
word node. Any talk of trees has to do with syntax and element
trees. You seem to be talking about an Infoset or a DOM, which is
fine for some cases. XML 1.0 is more interested in start tags and
> 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
I guess that makes SAX masochistic. It's hardly a tree of nodes
until something rips through the start and tags and builds that tree
of nodes. I guess that makes SAX masochistic.
And I don't understand this disdain for regular expressions over
XML. Regexes are a perfectly useful tool for manipulating text.
Bill de hÓra