[jdom-interest] Important proposal: Element/Document changes

Jools Enticknap jools at jools.org
Thu Jul 27 01:37:51 PDT 2000


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 ?

Would'nt the resultant XML be ? 

<foo foo="bar" foo="bar"/>

Which as you say is a no-no.


<snip-answered-queries />

--Jools





More information about the jdom-interest mailing list