title: Getting an error in beans.xml
body: <p>getting an error in <code>beans.xml</code>, please see this <a href="http://postimg.org/image/sumpfzrg3/" rel="nofollow">error</a>.</p>
  
  <p>I'm making a simple program in Spring, i'm completely beginner, I have two files.</p>
  
  <p>But in <code>beans.xml</code>, it shows an error in <code>&lt;property name="name" //here is an error.. value="Hello World" /&gt;</code></p>
  
  <p>It says:</p>
  
  <blockquote>
    <p>Attribute : name The name of the property, following JavaBean naming
    conventions.</p>
    
    <p>Data Type : string</p>
  </blockquote>
  
  <p>here is my full codes:</p>
  
  <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.xsd"&gt;
  
      &lt;bean id="helloworld" class="sample1.HelloWorld"&gt;
          &lt;property name="message" value="Hello World!!.."/&gt;              
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>As i said previously, i have tow files one contain <code>HelloWorld.java</code>:</p>
  
  <pre><code>package sample1;
  
  public class HelloWorld {
      public String message;
  
      public void setMessage(){
          this.message=message;
      }
  
      public void getMessage(){
          System.out.println("Your message: "+message);
      }
  }
  </code></pre>
  
  <p>And second contain <code>MainProgram.java</code>:</p>
  
  <pre><code>package sample1;
  
  import org.springframework.context.ApplicationContext;
  import org.springframework.context.support.ClassPathXmlApplicationContext;
  
  public class MainProgram {
      public static void main(String[] args){
  
          ApplicationContext context=new ClassPathXmlApplicationContext("Beans.xml");
          HelloWorld hw=(HelloWorld)context.getBean("helloworld");
          hw.getMessage();
      }
  }
  </code></pre>
  
  <p>Help would be appreciated!</p>