How can we make an attribute optional in XML manually without using tibco designer ?


We can do by changing the minOccurs of XSD.
In XSD Schema source ‘minOccurs’ specifies the optional or mandatory.

Example:

  <xs:element name="a" type="xs:string" minOccurs="0"/> 
  <xs:element name="b" type="xs:string" minOccurs="0"/>

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP