[jdom-interest] Important proposal: Element/Document changes
Brett McLaughlin
brett.mclaughlin at lutris.com
Thu Jul 27 07:07:29 PDT 2000
Jools Enticknap wrote:
>
> On Wed, 26 Jul 2000, Brett McLaughlin wrote:
>
> >
> >
> > Jools Enticknap wrote:
> > >
> > <snip-lots-of-agreement />
> > >
> > > But what about;
> > >
> > > List getAttributeValues(String name)
> > > List getAttributeValues(String name, Namespace ns)
> >
> > ?? attributes must be unique for an element. Can't have two.
>
> OK then I should not be able to do;
>
> Element e = new Element("test");
> e.addAttribute("foo", "bar");
> e.addAttribute("foo", "bar");
>
> Without the second call throwing an exception ?
Right now, that's a good question - we need to look into that (Jason,
can you add that to TODO, and I'll check for it?)
>
> Would'nt the resultant XML be ?
>
> <foo foo="bar" foo="bar"/>
>
> Which as you say is a no-no.
Correct.
-Brett
>
> <snip-answered-queries />
>
> --Jools
--
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
http://www.lutris.com
http://www.enhydra.org
More information about the jdom-interest
mailing list