P
pal.girish
Hi,
I am totally new to XML. I would like to know is there any way to
enforce rules in XML through XML schema such that value of one
attribute in some elemnet is validated against values of other
attributes in other elements. For eg
if
<fruit name=apple cost=5>
</fruit>
<fruit name=grapes cost=10>
</fruit>
now i need to check that cost of grapes is always greater than apple
can i do it through XML schema or I will need to parse the tree using
some programming language and then do all these types of validations
Thanks,
Girish
I am totally new to XML. I would like to know is there any way to
enforce rules in XML through XML schema such that value of one
attribute in some elemnet is validated against values of other
attributes in other elements. For eg
if
<fruit name=apple cost=5>
</fruit>
<fruit name=grapes cost=10>
</fruit>
now i need to check that cost of grapes is always greater than apple
can i do it through XML schema or I will need to parse the tree using
some programming language and then do all these types of validations
Thanks,
Girish