I have XML (as an example) with a segment called Type
within the segment Order
. The segment is a one to many, so we have something like :
<Order>
<Type>1</Type>
<Type>2</Type>
<Type>3</Type>
</Order>
Now the validation should be, that there always should be segment Type
with value 1 in the segment Order
, if not, a validation error should occur. I tried some validations, but could not get the correct result. Has someone thought on how to implement this and if this is even possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…