title: Read XML with ab:tag format using c#
body: <p>I am new to xml, c#. I am following this tutorial: <a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=564" rel="nofollow">http://www.dotnetcurry.com/ShowArticle.aspx?ID=564</a> </p>
  
  <p>But my xml file is little different. The xml that I want to read in my c# code is this: <a href="http://api.nextag.com/buyer/synd.jsp?search=ipod&amp;ver=15&amp;token=AQB7dB" rel="nofollow">http://api.nextag.com/buyer/synd.jsp?search=ipod&amp;ver=15&amp;token=AQB7dB</a>$kB8ULvbGT&amp;pid=1807</p>
  
  <p>Code I am trying to read this xml is:</p>
  
  <hr>
  
  <pre><code>using System;
  
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Xml;
  using System.Xml.Linq;
  
  
  namespace ConsoleApplication1
  {
  class Program
  {
  static void Main(string[] args)
  {
  
  XElement xelement = XElement.Load("http://api.nextag.com/buyer/synd.jsp?search=ipod&amp;ver=15&amp;token=AQB7dB$kB8ULvbGT&amp;pid=1807");
  XNamespace nxtg = "http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-01-11T08:31:30";
  
  IEnumerable&lt;XElement&gt; employees = xelement.Elements();
  // Read the entire XML
  foreach (var employee in employees)
  {
  //Console.WriteLine(employee);
  //Console.WriteLine(employee.Value);
  
  if (employee.Element(nxtg + "search-category") == null)
  continue;
  else
  Console.WriteLine(employee.Element(nxtg + "search-category").Value);
  //Console.WriteLine(employee.Element("EmpId").Value);
  }
  </code></pre>
  
  <hr>
  
  <p>But no luck. Anyone can help me please.</p>