title: Python XML BeautifulSoup get text of children nodes
body: <p>With a previous project I scraped data out of XML tag attributes, but I cannot figure out how to get the text of children XML nodes. The program pulls id's from a text file and plugs them into a url, which is then parsed. The XML is as follows: </p>
  
  <pre><code>&lt;Article&gt;
      &lt;Sometag Owner="Steve" Status="online"&gt;
          &lt;ID Version="1"&gt;231119634&lt;/PMID&gt;
          &lt;DateCreated&gt;
              &lt;Year&gt;2012&lt;/Year&gt;
              &lt;Month&gt;10&lt;/Month&gt;
              &lt;Day&gt;10&lt;/Day&gt;
          &lt;/DateCreated&gt;
  </code></pre>
  
  <p>I want to get the <code>year</code> <code>month</code> and <code>day</code> text out of the children tags of <code>DateCreated</code> </p>
  
  <p>So far I have the following, with no luck</p>
  
  <pre><code>    link = "http://somelink.com/"+line.rstrip('\n')+"?id=xml&amp;format=text"
      args = (curlLink + ' -L ' + link + ' -o c:\\temp.txt --proxy-ntlm -x http://myproxy:80 -k -U:') 
      sp = subprocess.Popen(args) #run curl
      sp.wait() #Wait for it to finish before proceeding
      xml_string = open(r'C:\temp.txt', 'r').read() #read in the temporary file
      os.remove(r'C:\temp.txt') # clean up
      soup = BeautifulSoup(xml_string)
      result = soup.find('DateCreated')
      if result is not None:
          date = result.children.get_text()
          g.write(date +"\n")
  </code></pre>