This is off-topic but,
an element can only have one attribute of a given name, and attributes can
only have one value. From the XML spec
Well-formedness constraint: Unique Att Spec
No attribute name may appear more than once in the same start-tag or
empty-element tag
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jake
> Brain
> Sent: 17 January 2001 21:19
> To: [EMAIL PROTECTED]
> Subject: DOM - set multiple values to an attribute
>
>
> trying to set multiple values to an attribute.
> with element.setAttribute("attribute" , "value1");
> element.setAttribute("attribute", "value2");
>
> however I still wind up with only one value
> Is there another way to dom - set multiple values to an attribute
> or do call element.setAttribute() again and again? Thanks
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html