title: testng - passing parameters from a separate XML file
body: <p>Im using testng.</p>
  
  <p>using @Parameters im passing parameters:</p>
  
  <p>@Parameters({"LoginCredentials"})</p>
  
  <p>and in testng.xml , im doing the following:</p>
  
  <p><code>&lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;</code></p>
  
  <p><code>&lt;suite name="Suite1" verbose="1" &gt;</code></p>
  
  <p><code>&lt;test name="Regression Test Suite "&gt;</code></p>
  
  <pre><code>&lt;parameter name="LoginCredentials" value="src\test\resources\Login.xml"/&gt;
  </code></pre>
  
  <p><code>&lt;classes&gt;</code>
          <code>&lt;class name="com.sample.testcases.LoginTest" /&gt;</code>
          <code>&lt;class name="com.sample.testcases.PollTest"/&gt;</code>
          <code>&lt;/classes&gt;</code></p>
  
  <p><code>&lt;/test&gt;</code></p>
  
  <p><code>&lt;/suite&gt;</code></p>
  
  <p>But when I run it , its not reading from the Login.xml file.</p>
  
  <p>This is Login.xml contents:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p><code>&lt;parameter name="strUserName" value="MVC"/&gt;</code></p>
  
  <p><code>&lt;parameter name="strPasword" value="mypassword"/&gt;</code></p>
  
  <p>Please tell me , how should I read parameters from a separate XML file and call it from testng.xml file.</p>