使用 simpleDom.php 解析 xml 文件在 Windows 中工作正常,但在 unix 中失败

发布于 2024-08-20 19:44:10 字数 632 浏览 6 评论 0原文

使用 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-&gt;insertXML('&lt;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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜清冷一曲。 2024-08-27 19:44:10

根据错误消息“块不平衡”,您的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文