GeertVerhoeven
Technical User
Hi all,
I'm currently creating an XSD to validate my xml file. I wonder wheter it is possible to force a set of attributes depending on the value of a different attribute?
For example I have the following XML structure:
<charColumn columnName="" maxLength="" allowDbNull="" />
<numberColumn columnName="" size="" scale="" allowDbNull="" />
Since this structure doesn't work that easy I want to go to a the following structure:
<column columnName="" type="" ...>
Depending on the type attribute (number, char, datetime, ...) I want to have force different attributes. Is it possible to do this via an XSD?
All comments are welcome.
Geert
Geert Verhoeven
Consultant @ Ausy Belgium
My Personal Blog
I'm currently creating an XSD to validate my xml file. I wonder wheter it is possible to force a set of attributes depending on the value of a different attribute?
For example I have the following XML structure:
<charColumn columnName="" maxLength="" allowDbNull="" />
<numberColumn columnName="" size="" scale="" allowDbNull="" />
Since this structure doesn't work that easy I want to go to a the following structure:
<column columnName="" type="" ...>
Depending on the type attribute (number, char, datetime, ...) I want to have force different attributes. Is it possible to do this via an XSD?
All comments are welcome.
Geert
Geert Verhoeven
Consultant @ Ausy Belgium
My Personal Blog