Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSDs, Attributes, and Enumeration

Status
Not open for further replies.

EAIGuy

MIS
Jun 3, 2003
1
US
I've built XML schemas before, and created elements that had enumerations or attributes, but never both. What I want is something like:

<state code=&quot;1234&quot;>GA</state>

Where the &quot;GA&quot; value comes from an enumerated list of possible state values. No matter what I do, I can't come up with a solution that allows me to give the element both enumeration and an attribute. How can I make it happen?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top