Hi, is there any way to add conditions on a tag value?
For example, my xml looks like this:
<Root>
<Scheduler>
<DateTimeType>DAY</DateTimeType>
<DayOfWeek>Sunday</DayOfWeek> --> TAG IS ALLOWED
</Scheduler>
<Scheduler>
<DateTimeType>MONTH</DateTimeType>
<DayOfWeek>Sunday</DayOfWeek> --> TAG IS NOT ALLOWED
<DayOfMonth>28</DayOfMonth> --> TAG IS ALLOWED
</Scheduler>
<Scheduler>
<DateTimeType>WEEKDAY</DateTimeType>
<DayOfWeek>Sunday</DayOfWeek> --> TAG IS ALLOWED
<TimeOfDay>15:26</TimeOfDay> --> TAG IS ALLOWED
<DayOfMonth>28</DayOfMonth> --> TAG IS NOT ALLOWED
</Scheduler>
<Scheduler>
<DateTimeType>TIME</DateTimeType>
<DayOfWeek>Sunday</DayOfWeek> --> TAG IS NOT ALLOWED
<DayOfMonth>28</DayOfMonth> --> TAG IS NOT ALLOWED
<TimeOfDay>15:26</TimeOfDay> --> TAG IS ALLOWED
</Scheduler>
</Root>
I need a XSD Schem that allow/not allows these conditions in my xml
Thanks
No comments:
Post a Comment