title: TypeError: Error #1085: The element type "opi1" must be terminated by the matching end-tag "</opi1>"
body: <p>I'm creating a quiz for the game using Animate CC, all of my questions and answers were taken from XML file. I have 3 categories in the quiz, each of them has 4 questions. 2 of them are working fine, but one has an error. Then I got received this error:</p>
  
  <pre><code>TypeError: Error #1085: The element type "opi1" must be terminated by the matching end-tag "&lt;/opi1&gt;".
  
      at RelationCon/loadXML()[RelationCon::frame10:13]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/onComplete()
  </code></pre>
  
  <p>Here's my code from frame 10:</p>
  
  <pre><code>import flash.net.URLLoader;
  import flash.net.URLRequest;
  
  var questioni: Array = new Array();
  var answeri: Array = new Array();
  var koreki: Array = new Array();
  var loader3: URLLoader = new URLLoader();
  
  loader3.addEventListener(Event.COMPLETE, loadXML);
  loader3.load(new URLRequest("relations.xml"));
  
  function loadXML(event: Event): void {
      var myxml3 = new XML(event.target.data);
      var loopo = myxml3.quesh.length();
      for (var i = 0; i &lt; loopo; i++) {
          questioni[i] = myxml3.quesh[i].qt1;
          answeri[i] = [myxml3.quesh[i].opi1, myxml3.quesh[i].opi2, myxml3.quesh[i].opi3];
          koreki[i] = myxml3.quesh[i].opi1;
      }
      gotoAndPlay(11);
  }
  </code></pre>
  
  <p>Here's from line 13:</p>
  
  <p><code>var myxml3 = new XML(event.target.data);</code></p>
  
  <p>And here's my code from XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;all&gt; 
  
  &lt;quesh&gt;
  &lt;qt1&gt;A relation can be represented using a ___________.&lt;/qt1&gt; 
  &lt;opi1&gt;Directed graph&lt;/opi&gt; 
  &lt;opi2&gt;Indirected graph&lt;/opi2&gt; 
  &lt;opi3&gt;Bar graph&lt;/opi3&gt;
  &lt;/quesh&gt;
  
  &lt;quesh&gt;
  &lt;qt1&gt;A type of relation on set X is the set {(x, x)|x ? X}.&lt;/qt1&gt; 
  &lt;opi1&gt;Identity&lt;/opi1&gt; 
  &lt;opi2&gt;Symmetry&lt;/opi2&gt; 
  &lt;opi3&gt;Empty&lt;/opi3&gt;
  &lt;/quesh&gt;
  
  &lt;quesh&gt;
  &lt;qt1&gt;A relation R on a set A called ___ if ?a?A is related to a.&lt;/qt1&gt; 
  &lt;opi1&gt;Reflexive&lt;/opi1&gt; 
  &lt;opi2&gt;Asymmetry&lt;/opi2&gt; 
  &lt;opi3&gt;Symmetry&lt;/opi3&gt;
  &lt;/quesh&gt;
  
  &lt;quesh&gt;
  &lt;qt1&gt;A relation R on set A is called ___________ if xRy and yRx implies x = y ?x ? A and ?y ? A.&lt;/qt1&gt; 
  &lt;opi1&gt;Anti-symmetric&lt;/opi1&gt; 
  &lt;opi2&gt;Reflexive&lt;/opi2&gt; 
  &lt;opi3&gt;Identity&lt;/opi3&gt;
  &lt;/quesh&gt;
  
  
  &lt;/all&gt;
  </code></pre>
  
  <p>Both codes seem right, but I don't think why I received this error. Is there something wrong with those codes that I've given? Any help will appreciated. Thanks!</p>