Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

The list method uses a finite sequence of itemType attributes to derive a new type

<!-- schema --> <simpleType name="websafe_hex">   <list itemType="string"/> </simpleType> <!-- instance document --> <color xsi:type="websafe_hex"> 00 33 66 99 cc ff</color>