DomDocument->load() not loading .plist
I use CFPropertylist to load a plist into a DomDocument. Now my .plist is fairly big with 3MB and now the following fails:
$doc = new DOMDocument();
if(!$doc->load($file)) throw new DOMException();
it always throws an exception, but the message is empty. How can I find out what is wrong?
plutil MyFile.plist // shows MyFi开发者_如何学JAVAle.plist: OK
I don't have any clue where to start searching...
I'm pretty sure it throws a warning when your XML is invalid. Check this post: http://www.php.net/manual/en/domdocument.loadxml.php#69295
精彩评论