title: Is there a way to have if/else conditions in an xml in spring mvc3?
body: <p>I have a properties file defined in my xml:</p>
  
  <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="location" value="/WEB-INF/db.properties"&gt;&lt;/property&gt;    
  &lt;/bean&gt;
  </code></pre>
  
  <p>I have a property in the file:</p>
  
  <pre><code>someprop = one
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>In my XML I would like to either add/remove a property in a bean definition. For example:</p>
  
  <pre><code>&lt;bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"&gt;
      &lt;property name="driverClassName" value="${jdbc.driverClassName}" /&gt;
      &lt;property name="url" value="${jdbc.internal.url}" /&gt;
      &lt;!--I want to add/remove the line below based on value in property file--&gt;
      &lt;property name="username" value="${jdbc.internal.username}" /&gt;
  &lt;/bean&gt;
  </code></pre>