Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP SimpleXML error
    text
    copied!<p>I have a big problem (at least for me ;)) with SimpleXML parser. The error is:</p> <p><code>Warning: simplexml_load_file(): file.meta:16: parser error : StartTag: invalid element name in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): &lt;335&gt; in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): ^ in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): file.meta:18: parser error : expected '&gt;' in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): in index.php on line 89</code> <br /><code>Warning: simplexml_load_file(): ^ in index.php on line 89</code> <br /><code>Warning: simplexml_load_file(): file.meta:18: parser error : Opening and ending tag mismatch: Sequence line 15 and unparseable in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): ^ in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): file.meta:19: parser error : StartTag: invalid element name in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): &lt;337&gt; in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): ^ in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): file.meta:21: parser error : expected '&gt;' in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): ^ in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): file.meta:21: parser error : Opening and ending tag mismatch: MetaAttack line 2 and unparseable in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): ^ in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): file.meta:21: parser error : Extra content at the end of the document in index.php on line 89</code> <br /> <code>Warning: simplexml_load_file(): in index.php on line 89</code><br /> <code>Warning: simplexml_load_file(): ^ in index.php on line 89</code> <br /> <code>Warning: Invalid argument supplied for foreach() in index.php on line 97</code></p> <p>I've googled it but got nothing. I searched for XML tag declaration also (maybe its forbidden to declare a number tag) but found nothing. Below you can find my xml (.meta) file:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;MA&gt; &lt;Count&gt; 3 &lt;/Count&gt; &lt;Duration&gt; 34 &lt;/Duration&gt; &lt;End&gt; 1315815814 &lt;/End&gt; &lt;Start&gt; 1315815780 &lt;/Start&gt; &lt;Sequence&gt; &lt;335&gt; 1315815794 &lt;/335&gt; &lt;337&gt; 1315815814 &lt;/337&gt; &lt;336&gt; 1315815804 &lt;/336&gt; &lt;/Sequence&gt; &lt;/MA&gt; </code></pre> <p>On line 89:</p> <pre><code>$ma = simplexml_load_file("file.meta"); </code></pre> <p>Any answer is appreciated. Thanks in advance. ;)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload