title: TestNG Report generation
body: <pre><code>import com.thoughtworks.xstream.annotations.XStreamAlias;
  @XStreamAlias(value = "Profile")
  public class ProfileDTO
  {
   ProfileDTO(String name, String address, String street, String phon_number, String houseNumber) {
  
      super();
      this.name = name;
      this.address = address;
      this.street = street;
      this.phon_number = phon_number;
      this.houseNumber = houseNumber;
  }
  
  
  
  String name,address,street,phon_number,houseNumber;
  
  //getters n setters
  </code></pre>
  
  <p>Now there is one test Class NewTest.from there i m making an XML &amp; Doing some operation .
  if operation is Success or failure i will be having another type of XML     </p>
  
  <pre><code>public class NewTest {
  ProfileDTO dto =null;
  String reqXML =null;
  
  @BeforeClass
  public void x() {
      dto = new ProfileDTO("abc", "USA", "street", "mobile", "42");
      XStream xStream = new XStream();
      xStream.autodetectAnnotations(true);
      reqXML = xStream.toXML(dto);
      System.out.println("in B4 CLass :::"+reqXML);
  }
  
  
  @Test
  public void testing() {
      //Post xml :::to some url::
      //  nd we got some response like..
      //&lt;Response&gt;
      //&lt;Status&gt; available &lt;/Status&gt;
      //&lt;/Response&gt;
  
  
  System.out.println("test:: "+reqXML);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>My question is that xml which i m posting..can i have that send xml and response xml in TEST REPORT.if test is success or failure doesn`t matter.<br>
    Please Help in this topic.</p>