title: capture the second E2ETraceEvent of a svclog file
body: <p>I need to find the tag  200  using the service trace viewer, it looks something like that!</p>
  
  <pre><code>&lt;SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-14799"&gt;
  &lt;ns2:SendInvoice xmlns:ns2="http://www.zadrwan.com/services/" xmlns:ns3="http://www.zadrwan.com/services/DocumentSendTo" xmlns:ns4="http://www.zadrwan.com/services/VersionRequest"&gt;                            
  &lt;ns2:Response&gt;200&lt;/ns2:Response&gt;
  &lt;ns2:Comments&gt;Success!.&lt;/ns2:Comments&gt;
  &lt;/ns2:SendInvoice&gt;
  </code></pre>
  
  <p></p>
  
  <p>when running the webservice does the Trace and writes an E2ETraceEvent the first one I don't need it, but the second one E2ETraceEvent (request) is the one I need and where is the </p>
  
  <p>I found some code on this page <a href="http://haishibai.blogspot.com/2009/04/monitoring-and-reading-svclog-file.html" rel="nofollow noreferrer">monitoring-and-reading-svclog-file</a></p>
  
  <p>my code is like this:</p>
  
  <pre><code> XmlReader reader = XmlReader.Create(stream, settings);
              while (reader.Read())
              {
  
                  switch (reader.NodeType)
                  {
                      case XmlNodeType.Element:
  
                          if (reader.Name == "E2ETraceEvent")
                          {
  
                              XmlReader subReader = reader.ReadSubtree();
  
                              while (subReader.Read())
                              {
                                  switch (reader.NodeType)
                                  {
                                      case XmlNodeType.Element:
                                          while (reader.Name == "Body")
                                          {
                                              Console.WriteLine(subReader.ReadOuterXml());
                                          } 
  
                                          break;
                                  }
                              }
  
                          }
                          break;
                  }
              }
  </code></pre>
  
  <p>how do i catch the second one, with the tag that contains n2 response ??</p>