From: Tobias Reif Date: 2001-11-14T01:21:50+09:00 Subject: [ruby-talk:25027] Re: XML support in the standard lib; what exactly? Bob Hutchison wrote: >>Other models could declare the sequence of attributes relevant, etc. >> > Not in XML, the order of attributes are specifically unordered -- there can > be no meaning to the order. Where is that specified in the XML spec? Anyway, there are differences betweem the three data models I mentioned, and any difference would be OK to illustrate that. >>IMHO, any RubyWay API should use 'The Document Object Model 's model' as >>a basis to build its' API on top. This way, it could perhaps use a DOM >>parser. Or it could adhere to the Infoset. >> > As long as you also provide an event model that does NOT require the whole > tree to be in memory. I don't understand. Currently, we're only talking about a RubyWay tree API. An eventbased API is something else. Or do you mean a tree API which doesn't require the whole tree to be in memory? I think in Python they have something like that; interesting. > The infoset spec defines the information contained in an XML document, it > does not say how to implement it. That's why it might be a good fit as a base for a new API. The new API would be based on a data model, defined as such; not on specifications of APIs that imply some data model. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/