← Prev in month ← Prev in thread
Next in thread → Next in month →

tying attribute values to data types

From
Tim Cronin <>
To
"''" <>
Date
2002-01-07T21:44:28Z
ID
<71FD63241A2DD511AFED00010236A4B3067CF3@LIVAUDAIS>
Thread
tying attribute values to data types
I have an XML doc where an attribute value is used to
tell what type of data the element has. Is there a way 
to validate this via schema?

Here's what the XML looks like

<Datum Type="String"><!-- XML Safe String --></Datum> 
<Datum Type="Color"><!-- named color or RGB hex code --></Datum> 
<Datum Type="Boolean"><!-- YES or NO --></Datum> 
<Datum Type="Number"><!-- any valid number int float signed --></Datum> 
<Datum Type="Font"><!-- has a specific child element format -->
  <Font Size="" Family="" Style="" Weight="" Color=""/>
</Datum> 
<Datum Type="Text">
  <![CDATA[<!-- Free form text -->]]>
</Datum> 
<Datum Type="XML">
  <![CDATA[<!-- valid XML but not part of schema -->]]>
</Datum>
← Prev in month ← Prev in thread
Next in thread → Next in month →