title: How to ignore the White spaces and new lines in XML
body: <p>I have an XML file where i will be looping throught the nodes and will get the values of the Attributes. </p>
  
  <p>But along with the attribute values i am also getting some symbols(rectangular box) in the output. If i try removing the space
  between tags then it was fine.</p>
  
  <p>In the below XML i am getting the innertext of title.</p>
  
  <pre><code> &lt;catalog&gt;
    &lt;book id="bk101"&gt;
     &lt;details&gt;
      &lt;title&gt;XML Developer's Guide&lt;/title&gt;
     &lt;/details&gt;
    &lt;/book&gt;
    &lt;/catalog&gt;
  </code></pre>
  
  <p>It was fine if my input is like this:</p>
  
  <pre><code>  &lt;catalog&gt;
     &lt;book id="bk101"&gt;
     &lt;details&gt;&lt;title&gt;XML Developer's Guide&lt;/title&gt;&lt;/details&gt;
     &lt;/book&gt;
    &lt;/catalog&gt;
  </code></pre>
  
  <p>I am using C# </p>
  
  <pre><code> foreach (XmlNode catalogid in Xmlcontent.GetElementsByTagName("catalog"))
        {
          foreach (XmlNode bookid in catalogid)
                      {
                          foreach (XmlNode titleid in bookid)
                          {
                         string booktitle = titleid.InnerText.ToString();
                          }
                       }
        }
  </code></pre>
  
  <p>Please suggest how can i ignore the White spaces and new lines in my output. </p>