> simply use the "deprecated" flag for the getName() method. > Indeed!
> I thought about : > Iterator getNames() > > and maybe > String[] getNames() > > would be better since it's much easier to initialize statically > I would also prefer the second version (return a String[]), because this feels like it fits in better with the API's style (as there are already a few methods which return arrays, but none which return an Iterator). In addition, having the entries in a String[] saves users from casting Iterator contents to Strings when iterating through them. > -Vladimir > > -- > Vladimir R. Bossicard > www.bossicard.com Cheers, Trevor. ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------