[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] Help regarding an XML attribute.
- From: Ronald Bourret <rpbourret@rpbourret.com>
- To: Wayne Steele <xmlmaster@hotmail.com>
- Date: Mon, 15 Oct 2001 11:19:50 -0700
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