Error #1088: The markup in the document following the root element must be well-formed [closed]
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 5 years ago.
Improve this questionI'm using flex 4 to build a program and I am getting this error on one module I call.
Error #1088: The m开发者_Go百科arkup in the document following the root element must be well-formed.
Does this refer to the module document (.mxml) or the actually xml file the module it calling?
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?
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");
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.
You can have only one root element in an XML file. Could it be that you have multiple roots?
精彩评论