使用 simpleDom.php 解析 xml 文件在 Windows 中工作正常,但在 unix 中失败
使用 simpleDom.php 解析 xml 文件在 windows 中工作正常,但在 unix 中失败。
<br />
<b>Fatal error</b>: Uncaught exception 'InvalidArgumentException' with message 'chunk is not well balanced
' in SimpleDOM.php:576
Stack trace:
#0 lib.php(367): SimpleDOM->insertXML('<prebuilt.credi...')
#1 save_document.php(15): sSaveDataForXML('xml//aa11.xml', NULL, '0::12::13::14::...', '??Group B strep...')
#2 {main}
thrown in <b> SimpleDOM.php</b> on line <b>576</b><br />
白天试图解决这些问题,但没有成果。
我知道它与环境/php.ini 设置有关...但无法弄清楚
Using simpleDom.php to parse an xml file works fine in windows but failsin unix .
<br />
<b>Fatal error</b>: Uncaught exception 'InvalidArgumentException' with message 'chunk is not well balanced
' in SimpleDOM.php:576
Stack trace:
#0 lib.php(367): SimpleDOM->insertXML('<prebuilt.credi...')
#1 save_document.php(15): sSaveDataForXML('xml//aa11.xml', NULL, '0::12::13::14::...', '??Group B strep...')
#2 {main}
thrown in <b> SimpleDOM.php</b> on line <b>576</b><br />
Being trying to fix these for day but not fruitful.
I know its something to do with the environment / php.ini setting ... but couldn't figure it out
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据错误消息“块不平衡”,您的 XML 显然存在问题。您应该检查它的格式是否良好。如果您的环境不同,也许它会在某个地方被截断?
另外,在发布与 XML 相关的问题时,请链接到您的 XML 文档或 XML 文档的示例。
According to the error message
"chunk is not well balanced"
there is apparently a problem with your XML. You should check it for well-formedness. If your environment differs, perhaps it gets truncated somewhere?Also, when posting XML-related questions, please link to your XML document or a sample of your XML document.