From: ser@... (Sean Russell) Date: 2004-07-27T01:06:51+09:00 Subject: Re: [REXML] why not Element#[] ? gabriele renzi wrote in message news:<8st2g0pmbeoeco74njv49uge4cr4rf52n8@4ax.com>... > I was just wondering why access to attributes of an element is done > just via #attributes#[]. Element#[] is already defined, since it is inherited from Parent. #[] references all child nodes of an element except attributes. > if this is not allowed there may be a reason: what is this reason? It was, primarily, a design decision: either Element#[] references nodal children, or Element#[] references attributes. I chose the children. --- SER