title: Why is it showing Element type "bean" must be followed by either attribute specifications, ">" or "/ >".at <property name="list">
body: <pre><code>      &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
        &lt;beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"&gt;
  
          &lt;bean id="SampleWorld" class="com.spring.collections"
  </code></pre>
  
  <p>1. This is the point i get the Element type "bean" must be followed by either attribute specifications, ">" or "/>".<br>
  </p>
  
  <pre><code>            &lt;property name="list"&gt;
                  &lt;list&gt;
                      &lt;value&gt; 1 &lt;/value&gt;
                  &lt;/list&gt;
                  &lt;ref = employee " /&gt;
              &lt;/property&gt;
  
              &lt;property name="set"&gt;
                  &lt;set&gt;
                      &lt;value&gt; 21&lt;/value&gt;
                  &lt;/set&gt;
                  &lt;ref = employee " /&gt;
              &lt;/property&gt;
  
              &lt;property name="properties"&gt;
                  &lt;properties&gt;
                      &lt;value&gt; 21&lt;/value&gt;
                  &lt;/properties&gt;
                  &lt;ref = employee " /&gt;
              &lt;/property&gt;
              &lt;property name="map"&gt;
                  &lt;map&gt;
                      &lt;entry key="1" value="value1" /&gt;
                      &lt;entry key="2" value-ref="employee" /&gt;
                  &lt;/map&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
  </code></pre>
  
  <p>2. THis is another dependency bean class to inject id and employee dependencies.</p>
  
  <pre><code>        &lt;bean id="employee" class="com.spring.collections"
  
  
              &lt;property name="id" value="2312" /&gt;
              &lt;property name="employeeName" value="SpringHero" /&gt;
          &lt;/bean&gt;
      &lt;/beans&gt;
  </code></pre>