Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Fri, 23 May 2008 12:41:01 -0700 (PDT),    group: microsoft.public.xml        back       


Conditional MinOccurs in an XSD   
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?
date: Fri, 23 May 2008 12:41:01 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us