OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] Help regarding an XML attribute.



Wayne Steele wrote:
> 
> >From: Huy-Lan Phan <Huylanp@Oceanwide.com>
> ... I think only a complex element can have attributes ...
> 
> You are correct. Only a complex element can have attributes.

But don't forget that a complex type can have simple content.

<complexType>
   <simpleContent>
      <restriction base="xsd:string" />
   </simpleContent>
   <attribute>...</attribute>
   ...
</complexType>

-- Ron