L
linushung
With the following XML
<ProductTypeID>1</ProductTypeID>
<A/>
<B/>
<C/>
<D/>
I'd like to achieve the following scenario in my xsd:
if ProductTypeID = 1 then the XML should be
<ProductTypeID>1</ProductTypeID>
<A/>
<B/>
if ProductTypeID = 2 then the XML should be
<ProductTypeID>2</ProductTypeID>
<C/>
<D/>
Is this possilbe to be enforced in an XSD?
<ProductTypeID>1</ProductTypeID>
<A/>
<B/>
<C/>
<D/>
I'd like to achieve the following scenario in my xsd:
if ProductTypeID = 1 then the XML should be
<ProductTypeID>1</ProductTypeID>
<A/>
<B/>
if ProductTypeID = 2 then the XML should be
<ProductTypeID>2</ProductTypeID>
<C/>
<D/>
Is this possilbe to be enforced in an XSD?