how to relate current attribute value to the tag content

trigger33

New Member
I am solving problem in my XML doc. My doc example:\[code\]<Height unit="m">lala</Height>\[/code\] attribute \[code\]unit\[/code\] has two values: \[code\]unit="m"\[/code\] and \[code\]unit="ft"\[/code\]. And I am suggesting is it possible to create XSD which will restric data type of child(text) of \[code\]Height\[/code\] content.For a example, then the \[code\]"m"\[/code\] is set, height must be in float type, then the \[code\]"ft"\[/code\] is set, height must be in string.
 
Top