
26.10.2005, 20:40
|
|
Регистрация: Aug 2005
Адрес: Украина
Сообщений: 112
|
Вот скрипт, который читает ХМЛ
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("menu.xml");
myXML.onLoad = function(success) {
if (success == true) {
rootNode = myXML.firstChild;
autorTag = rootNode.firstChild;
theAuthor = autorTag.firstChild;
widthtag = theAuthor.firstChild;
gotoAndStop(2);
}
};
вот сама строка ХМЛ
<navigation><dimension>Hello<br>Hello again</br></dimension><name>name of smth</name><width>width of smth</width></navigation>
Должна выводить
Hello
Hello again
а выводит в одну строку
|