title: XML Start and End Tags
body: <p>I need to display the Name of the Start tag and the end tag at appropriate positions while parsing an xml file. I have to use other method than using startElement and endElement functions. Below is an example as how I expect my output to be.</p>
  
  <pre><code>`&lt;?xml version="1.0" encoding="ASCII"?&gt;
  &lt;Employee-Detail&gt;
  &lt;Employee&gt;
    &lt;Emp_Id&gt;E-001&lt;/Emp_Id&gt;
    &lt;Emp_Name&gt;
    &lt;First_Name&gt;Mani&lt;/First_Name&gt;
    &lt;Last_Name&gt;Maran&lt;/Last_Name&gt;
    &lt;/Emp_Name&gt;
    &lt;Emp_E-mail&gt;Vinod1@yahoo.com&lt;/Emp_E-mail&gt; 
    &lt;/Employee&gt;
  &lt;/Employee-Detail&gt;
  `
  </code></pre>
  
  <p>Output:
  StartTag:Employee-Detail
  StartTag:Employee
  StartTag:Emp_Id
  Value:E-001
  EndTag:Emp_Id
  StartTag:Emp_Name
  StartTag:First_Name
  Value:Mani
  EndTag:First_Name
  StartTag:Last_Name
  Value:Maran
  EndTag:Last_Name
  EndTag:Emp_Name
  StartTag:Emp_E-mail
  Value:Vinod1@yahoo.com
  EndTag:Emp_E-mail
  EndTag:Employee
  EndTag:Employee-Detail</p>