Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About evanc

  • Rank
  • Birthday 06/06/1964

Profile Information

  • Location
    Seattle, WA
  1. I certainly hope you have found the answer to this someplace else considering the age of this post... The work around I have been using for this sort of issue is this: <xs:complexType name="PhoneNumbers_type"> <xs:choice minOccurs="0" maxOccurs="2"> <xs:element name="work" type="xs:string" /> <xs:element name="cell" type="xs:string" /> </xs:choice></xs:complexType>
  2. I have seen a couple other posts similar to this, but not quite the sameā€¦ I am trying to create Schemas to validate my product's object model. I am finding many instances where attributes associated with elements depend upon the content of the element. For example: <busy nil="true"></busy> or <busy type="boolean">true</busy> are valid values. I have been using my own type with a union and optional attributes to validate this element like so: <?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qua
  • Create New...