Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
您正在加载的很可能是 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?
老问题,我回答是为了解决问题。
可能有 2 个答案:
Old question, I answer for the sake of solution.
There can be 2 answers:
运行您通过 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.
一个 XML 文件中只能有一个根元素。
难道你有多个根吗?
You can have only one root element in an XML file.
Could it be that you have multiple roots?