title: How to read CDATA in XML file with PowerShell?
body: <p>I am having a difficult time reading an XML file with Cdata inside.</p>
  <h1>in $xmlsource</h1>
  <pre><code>&lt;list&gt;
    &lt;topic&gt;
       &lt;topicTitle&gt;Test&lt;/topicTitle&gt;
       &lt;topicDetail&gt;&lt;![CDATA[&lt;br&gt;randomHTMLhere&lt;/br&gt;]]&gt;&lt;/topicDetail&gt;
    &lt;/topic&gt;
  &lt;/list&gt;
  </code></pre>
  <h1>powershell</h1>
  <pre><code>[xml]$xml = get-content $xmlsource    
  
  foreach ($topic in $xml.list) {
      $topic.topicTitle
      $topic.topicDetail
  }
  </code></pre>
  <p>$topic.topicDetail will be null while $topic.topicTitle will not be. Any ideas?</p>