OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Re: If XML is too hard for a programmer, perhaps he'dbe be

[ Lists Home | Date Index | Thread 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 
end tags.


> 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
> experience.

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS