View Single Post
  #1 (permalink)  
Old September 10th, 2013, 04:07 AM
MargateFan MargateFan is offline
Authorized User
Points: 108, Level: 2
Points: 108, Level: 2 Points: 108, Level: 2 Points: 108, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2006
Location: , , United Kingdom.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSD Optional Attributes

I've had a look around but can't find anything positive, so assuming it can't be done, but just in case!

I need an XSD to have pairs of attributes that one needs to be specified. For example the XML has to contain either a code or a name (or both), i.e. either DeptCode="HR" or DeptName="Human Resources"

Any help (positive or negative) appreciated
Nigel