title: Roku - not parsing malformed xml
body: <p>I have a strange behavior when parsing a large xml (but I'm not sure if the fact that is large is causing the problem).
  This is the xml format:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;webservice&gt;
      &lt;control&gt;
     &lt;operation&gt;get_clips&lt;/operation&gt;
     &lt;status&gt;0&lt;/status&gt;
      &lt;/control&gt;
      &lt;data&gt;
         &lt;cat size="4" lang="EN"/&gt;
         &lt;cat size="3" lang="EN"/&gt;
         ' and 19 more other similar 'cat' elements
       &lt;/data&gt;
    &lt;/webservice&gt; 
  </code></pre>
  
  <p>and this is the code, where <code>m.rawResponse</code> is the above xml string.</p>
  
  <pre><code>if m.rawResponse &lt;&gt; "" then
    xml = CreateObject("roXMLElement")
    print "################ "; m.rawResponse ' contains the entire xml
    xml.Parse( m.rawResponse )
    print "################ "; m.rawResponse ' contains the entire xml
  
    ' I've tried like this
    categories = xml.data.GetChildElements()
    print "number of categories: " ; categories.Count() ' prints 14
  
    ' and also like this
    i = 0
    for each categ in xml.data.cat
       i = i +1    
    end for
    print i ' prints 14
  end if 
  </code></pre>
  
  <p>The problem is that is only processing 14 cat elements, instead of 21 and I really don't know why.
  Please help me with any ideas.
  Thanks a lot!</p>
  
  <p><strong>Later edit</strong>
  I've added a check to see if the parsing is successful and something went wrong there. The problem is related to the symbol <code>&amp;</code> - I have in the xml the following line:</p>
  
  <pre><code>&lt;director&gt;Donald Nij &amp; Rick Senjin&lt;/director&gt;
  </code></pre>
  
  <p>How can I resolve this issue, but not on the server side, but on the Roku code? I could not find any solution searching over the internet. Tks.</p>