Ошибка формата XML при возврате - PullRequest
0 голосов
/ 19 ноября 2010

Я получил TypeError: Error #1088: The markup in the document following the root element must be well-formed.

Но вывод этой строки мне кажется правильным.

<midifile>C:\Users\XYZ\Desktop\white_night_in_G.mp3</midifile>
<resolution>240</resolution>
<tick>77767</tick>
<ttrack>5</ttrack>
<tpatches>0</tpatches>
<tduration>226.063</tduration>


var xmlResults:XML = new XML(message);
xmlResults.ignoreWhite = true;

1 Ответ

3 голосов
/ 19 ноября 2010

это вся разметка xml?вам не хватает корневого тега.Попробуйте

<item>
<midifile>C:\Users\XYZ\Desktop\white_night_in_G.mp3</midifile>
<resolution>240</resolution>
<tick>77767</tick>
<ttrack>5</ttrack>
<tpatches>0</tpatches>
<tduration>226.063</tduration>
</item>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...