how to relate current attribute value to the tag content

Discussion in 'XML Forums' started by trigger33, Apr 10, 2013.

  1. trigger33

    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.
     

Share This Page