[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xml-dev] Follow up on: Help regarding an XML attribute.
- From: Huy-Lan Phan <Huylanp@Oceanwide.com>
- To: email@example.com
- Date: Tue, 16 Oct 2001 11:23:06 -0400
I'd like to thank everyone who answered my question
regarding an element's attribute, namely Wayne, Ronald,
Eddie and Vance.
I tried them and both way suggested worked:
The simpleContent or complexContent with the restriction element
or extension element.
Now I have another dilema. I have defined two attributes and they're
both required. Somehow, if one if them is defined, the validation will
go through without giving any error. It only gives error when both
of them are missing. This is not what I'm looking for since I want
both of them to be required, so if one of them is missing, I want the
validation to give an error. I don't know if it's XML Spy's validation
that is wrong.
Here is the element defined with two mandatory attributes:
type="xsd:string" use="required" default="bin.base64"/>
Huy-Lan Phan firstname.lastname@example.org
Manager, Account Integration
Oceanwide Marine Network Inc.
507 Place d'Armes 3rd floor 514-289-9090 ext 239
Montreal, Quebec, Canada