Whitespace is not allowed before an XML Processing Instruction (< ? ... ?>). HTMLComponent.Eclipse在编辑mxml的时候提示这样的错误。检查才发现代码中在<? ?>之前存在空格。比如以下的代码就会出现错误。把
<?xml version="1.0" encoding="utf-8"?>
之前所有空格都删除了,即放在第一行的第一个位置就可以了。
|