From: TAKAHASHI Masayoshi Date: 2002-02-08T02:57:40+09:00 Subject: Re: Ruby + XML Proposal Hello, Sorry to late response, but it's very interesting proposal. Bryan Murphy wrote: > Also, do we need to standardize on the ErrorHandler interface as well, or can we > simply rely on exceptions? (Personally I'd choose exceptions). If you'd like to output warning without stopping parsing, you should support error handler. > The differences between this model and the SAX2 model are: > > 1. I've removed the startPrefixMapping and endPrefixMapping events, and moved > namespace declarations back into the attributes where they are in the XML > document. (snip) > 2. Attributes are a hash, and not an object (though this is, like everything else, > open for discussion). I'm of the opinion that if you need to worry about attribute > namespaces, you should check the attribute names explicitly using regexps. Hmm. But we maybe need a namespace manager class (like NamespaceSupport in SAX2) to handle/resolve namespace things. Moreover, if we use namespace manager object, startPrefixMapping/endPrefixMapping is useful. By the way, do you think about entity referene, CDATA, DTD and Doctype? Should we support them? If so, how? Regards, TAKAHASHI 'Maki' Masayoshi E-mail: maki@rubycolor.org