title: Syntax for specifying spring xml files in ClassPathXmlApplicationContext
body: <p>I am trying to find out the syntax for specifying the spring's XML file in the constructor of <code>ClassPathXmlApplicationContext</code>. By syntax I don't mean the method signature but the actual string</p>
  
  <p>For example the following three work.</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext("com/anshbansal/alarm/alarm.xml");
  ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alarm.xml");
  ApplicationContext context = new ClassPathXmlApplicationContext("alarm.xml");
  </code></pre>
  
  <p>I have googled and tried to go through the <code>Spring 3.1.0</code> source code also. But I got stuck after <code>doResolvePlaceholders</code> method in <code>org.springframework.core.env.AbstractPropertyResolver</code> class of  Spring. Specificaly I was not able to understand how placeholders are resolving to the path.</p>
  
  <p>Can anyone share what is the syntax for the string to specify the xml file?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I mean the syntax to specify path to spring xml file like in the constructor. I do not mean the syntax of the xml file itself.</p>