php - Errors from simplexml_load_file -


i'm several errors

[23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: /home/lineage/public_html/acp/xml/banners.xml:48: parser error : opening , ending tag mismatch: banner line 33 , list in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: &lt;/list&gt; in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]:        ^ in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: /home/lineage/public_html/acp/xml/banners.xml:48: parser error : premature end of data in tag banner line 26 in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: &lt;/list&gt; in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]:        ^ in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: /home/lineage/public_html/acp/xml/banners.xml:48: parser error : premature end of data in tag banner line 19 in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: &lt;/list&gt; in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]:        ^ in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: /home/lineage/public_html/acp/xml/banners.xml:48: parser error : premature end of data in tag list line 2 in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: &lt;/list&gt; in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]:        ^ in /home/lineage/public_html/acp/core.php on line 191 [23-aug-2013 15:35:20 america/sao_paulo] php notice:  trying property of non-object in /home/lineage/public_html/acp/core.php on line 206 [23-aug-2013 15:35:20 america/sao_paulo] php warning:  invalid argument supplied foreach() in /home/lineage/public_html/acp/core.php on line 197 

i took system ever made not know happening!

line: 197 core.php

foreach ($this->getall() $banner) {  

line: 191 core.php

$_xmlbanners = simplexml_load_file(path_xml."banners.xml"); 

baners.xml:

<?xml version="1.0" encoding="utf-8"?> <list>     <banner id="1">         <image>http://lineagefree.com/acp/images/l2jbr.png</image>         <link>http://l2j.lt/topai/balsuoti-7907.php</link>         <votes>             <link>http://l2j.lt/topai/mokamas-7907.php</link>             <regexp><div class='list_8' style="font-weight: bold">(.*)</div></regexp>         </votes>     </banner>     <banner id="2">         <image>http://lineagefree.com/acp/images/top100mmorpg.png</image>         <link>http://l2j.lt/topai/balsuoti-7907.php</link>         <votes>             <link>http://l2j.lt/topai/mokamas-7907.php</link>             <regexp><div class='dlist_8' style="font-weight: bold">(.*)</div></regexp>         </votes>     </banner>     <banner id="3">         <image>http://lineagefree.com/acp/images/gamesitestop100.jpg</image>         <link>http://l2j.lt/topai/balsuoti-7907.php</link>         <votes>             <link>http://l2j.lt/topai/mokamas-7907.php</link>             <regexp><div class='dlist_8' style="font-weight: bold">(.*)</div></regexp>         </votes>         <banner id="4">         <image>http://lineagefree.com/acp/images/arenatop100.png</image>         <link>http://l2j.lt/topai/balsuoti-7907.php</link>         <votes>             <link>http://l2j.lt/topai/mokamas-7907.php</link>             <regexp><div class='dlist_8' style="font-weight: bold">(.*)</div></regexp>         </votes>         <banner id="5">         <image>http://lineagefree.com/acp/images/mmorpglist.jpg</image>         <link>http://l2j.lt/topai/balsuoti-7907.php</link>         <votes>             <link>http://l2j.lt/topai/mokamas-7907.php</link>             <regexp><div class='dlist_8' style="font-weight: bold">(.*)</div></regexp>         </votes>         <banner id="6">         <image>http://lineagefree.com/acp/images/top200.gif</image>         <link>http://l2j.lt/topai/balsuoti-7907.php</link>         <votes>             <link>http://l2j.lt/topai/mokamas-7907.php</link>             <regexp><div class='dlist_8' style="font-weight: bold">(.*)</div></regexp>         </votes>     </banner> </list> 

follows data. if need more please ask me. i'm desperate. sorry english. done google!

the error message opening , ending tag mismatch: banner line 33 , list telling while parsing xml file, parser found opening tag <banner>, , nested content, when expecting matching end tag </banner> found different end tag, </list>.

this happens when have tag opened somewhere never close, meaning parser still waiting close when gets close of outer block.

in case, can through xml , see there 6 opening <banner> tags, 3 closing </banner>, something's gone wrong.

in fact, seem missing </banner> @ end of banners ids 3, 4, , 5.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -