This example shows the way to set the null value in the Spring configuration file.

Java Code:
<bean class="SampleBean">
<property name="name"><value></value></property>
</bean>
Results in the name property being set to "", equivalent to the java code: sampleBean.setName("").
The special <null> element may be used to indicate a null value, so that:

Java Code:
<bean class="ExampleBean">
<property name="email"><null/></property>
</bean>
The above configuration is equivalent to the java code:

Java Code:
exampleBean.setEmail(null).