Hello,
I'd like to write an XML-Schema which has the following structure:
<xsd: complexType name="example">
<xsd: element name="variablen ame" type="xsd:strin g"/>
<xsd: element name="variablet ype" type="xsd:strin g"/>
<xsd: element name="variablev alue" type=?????????? />
</xsd:complexType >
My problem is that the type of the element "variableva lue" depends on
the content of the element "variablety pe".
e.g. when variablevalue=l ong, the type of variablevalue should be
"xsd: long";
when variablevalue=s tring, the type of variablevalue should be
"xsd: string";
How can solve this problem? Have you any idea?
Thanks
lucia
I'd like to write an XML-Schema which has the following structure:
<xsd: complexType name="example">
<xsd: element name="variablen ame" type="xsd:strin g"/>
<xsd: element name="variablet ype" type="xsd:strin g"/>
<xsd: element name="variablev alue" type=?????????? />
</xsd:complexType >
My problem is that the type of the element "variableva lue" depends on
the content of the element "variablety pe".
e.g. when variablevalue=l ong, the type of variablevalue should be
"xsd: long";
when variablevalue=s tring, the type of variablevalue should be
"xsd: string";
How can solve this problem? Have you any idea?
Thanks
lucia
Comment