开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜