R
RolfK
Dear ALL,
I creating an XML which holds elements which optional attributes.
So-far no problem, I just set the "optional" value in the "required"
attribute of my schema.
But how to check for such situations (I omitted the attribute values
for the sake of short text here)
A1 is always there, all other attributes are optional.
Case one:
Combination which may exists are A1,AA2,A3 or A1,A4,A5.
<E A1="" A2="" A3="">
<E A1="" A4"" A5="">
Case two:
The existance of an attribute depnds on a the VALUE of another
attribute
A1=a ==> A1,A2,A3
A1=b ==> A1,A4,A5
A1=c ==> A1,A6,A7
<E A1="a" A2="" A3="">
<E A1="b" A4="" A5="">
<E A1="c" A6="" A7="">
May be there is a standard solution for this two cases.
Thanks a lot
Rolfk
I creating an XML which holds elements which optional attributes.
So-far no problem, I just set the "optional" value in the "required"
attribute of my schema.
But how to check for such situations (I omitted the attribute values
for the sake of short text here)
A1 is always there, all other attributes are optional.
Case one:
Combination which may exists are A1,AA2,A3 or A1,A4,A5.
<E A1="" A2="" A3="">
<E A1="" A4"" A5="">
Case two:
The existance of an attribute depnds on a the VALUE of another
attribute
A1=a ==> A1,A2,A3
A1=b ==> A1,A4,A5
A1=c ==> A1,A6,A7
<E A1="a" A2="" A3="">
<E A1="b" A4="" A5="">
<E A1="c" A6="" A7="">
May be there is a standard solution for this two cases.
Thanks a lot
Rolfk