title: remove newline and whitespace parse XML with python Xpath
body: <p>Here is the xml file <a href="http://www.diveintopython3.net/examples/feed.xml" rel="nofollow noreferrer">http://www.diveintopython3.net/examples/feed.xml</a></p>
  
  <p>My code is 
  <a href="https://i.stack.imgur.com/22GNA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/22GNA.png" alt="enter image description here"></a></p>
  
  <p>My result is <a href="https://i.stack.imgur.com/x6Gz4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x6Gz4.png" alt="enter image description here"></a></p>
  
  <p>My questions are</p>
  
  <ol>
  <li><p>how to remove the <code>\n</code> and the following white space in the text</p></li>
  <li><p>how to get the node whose text is "dive into mark", how to search the text syntax</p></li>
  </ol>