PHP Classes

simplexml_load_string error

Recommend this page to a friend!

      Apk Parser  >  All threads  >  simplexml_load_string error  >  (Un) Subscribe thread alerts  
Subject:simplexml_load_string error
Summary:some apk that contain special chars return XML string errors
Messages:1
Author:Adrian C
Date:2014-10-02 14:30:40
 

  1. simplexml_load_string error   Reply   Report abuse  
Picture of Adrian C Adrian C - 2014-10-02 14:30:40
Hello.

I am using your apk parser, it is a nice package and I thank you for it.

I am wondering if you can give me some tips on fixing some errors that I get with certain apk files.

If the apk file has some special characers, e.g some Russian apk files I get these errors, someone mentioned that I need to do an utf8_encoding() on the file_get_contents() of the xml file, but I cannot locate your code lines that load an external XML file. Thank you for your time.

Warning: simplexml_load_string(): Entity: line 5: parser error : invalid character in attribute value in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): ^ in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): Entity: line 5: parser error : attributes construct error in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): ^ in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): Entity: line 5: parser error : Couldn't find end of Start Tag application line 5 in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): ^ in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): Entity: line 5: parser error : PCDATA invalid Char value 22 in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): ^ in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): Entity: line 6: parser error : invalid character in attribute value in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): ^ in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string(): Entity: line 14: parser error : Extra content at the end of the document in /var/www/vhosts/apkfiles.com/httpdocs/scripts/apk-parser-1.4/lib/ApkParser/XmlParser.php on line 179 Warning: simplexml_load_string():