You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Xiaofan Zhou <Xi...@businessobjects.com> on 2005/01/21 09:10:22 UTC

Duplicate attributes

Hi, all,
 
Not sure if this is the place to ask this, but I would like to know if
it is valid for an XML element to have duplicate attributes.
 
Thanks in advance.
 
Frank 


Re: Duplicate attributes

Posted by David Cargill <ca...@ca.ibm.com>.



No.  An element cannot have duplicate attributes.

The XML Spec states
(http://www.w3.org/TR/2004/REC-xml-20040204/#dt-attrname)
Well-formedness constraint: Unique Att Spec


    An attribute name MUST NOT appear more than once in the same start-tag
    or empty-element tag.


  David


                                                                           
             "Xiaofan Zhou"                                                
             <Xiaofan.Zhou@bus                                             
             inessobjects.com>                                          To 
                                       <xe...@xml.apache.org>       
             01/21/2005 03:10                                           cc 
             AM                                                            
                                                                   Subject 
                                       Duplicate attributes                
             Please respond to                                             
               xerces-c-dev                                                
                                                                           
                                                                           
                                                                           
                                                                           




Hi, all,

Not sure if this is the place to ask this, but I would like to know if it
is valid for an XML element to have duplicate attributes.

Thanks in advance.

Frank


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org