[jdom-interest] Element.addAttribute() question ...
jwtodd at pacbell.net
Fri Jul 28 13:20:10 PDT 2000
jDom !rocks! ... 'nuff said :)
<just getting in on the list ... after a quick flyby i didn't see this
in the archives ... i can try to recreate if folks just don't believe
is it by design that Element.addAttribute() allows for the same
keyed attribute to be added multiple times w/o emitting a
warning/exception of any type? when i dumped the the Element
Element myElement = null;
ByteArrayOutputStream bas = new ByteArrayOutputStream();
new XMLOutputter(" ", true).output(new Document(myElement);
System.out.println("dump: " + bas.toString());
it reported that indeed a like named attribute is allowed to reside
more then one time in an Element.
secondary question: will the output of the above code snippet
be similiar to Element.getSerializedForm() once implemented
(as the version i have reports this method is under development).
More information about the jdom-interest