错误 #1088:文档中根元素后面的标记必须格式正确

发布于 2024-10-17 17:03:13 字数 1468 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

还给你自由 2024-10-24 17:03:13

您正在加载的很可能是 XML 内容,而不是模块。如果 MXML 文件有问题,您会在编译时而不是运行时遇到它们。

您可以发布您正在加载的 XML 文件吗?

It's most likely XML content you're loading, not the module. If the MXML file had issues, you'd hit them at compile-time, rather than run-time.

Can you post the XML file you're loading?

春风十里 2024-10-24 17:03:13

老问题,我回答是为了解决问题。

可能有 2 个答案:

  • XML 格式不正确(将其加载到浏览器中)
  • 未找到 XML 文件,但仍然会触发事件,并且您尝试转换为 XML(“null”);

Old question, I answer for the sake of solution.

There can be 2 answers:

  • The XML is not well formed (load it in a browser)
  • The XML file is not found, but still an event is fired and you try to convert to XML("null");
在巴黎塔顶看东京樱花 2024-10-24 17:03:13

运行您通过 XML 验证器加载的 XML 内容,如下所示 - http://www. w3schools.com/xml/xml_validator.asp

您可能只是在 XML 中的某个位置有一个类型,如果您验证它,它会为您找到它并告诉您它在哪里。

Run the XML content that you're loading in through an XML validator like this - http://www.w3schools.com/xml/xml_validator.asp

It's possible you simply have a type somewhere in your XML, and if you validate it it'll find it for you and tell you where it is.

巷子口的你 2024-10-24 17:03:13

一个 XML 文件中只能有一个根元素。
难道你有多个根吗?

You can have only one root element in an XML file.
Could it be that you have multiple roots?

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