level 1
qwe37665378
楼主
XML文件:
<?xml version="1.0" encoding="utf-8" ?>
<document>
<item>
<id>8888888888</id>
<title>低估遥遥插入入科</title>
<text>33333333333333</text>
</item>
<item>
<id>200972090834</id>
<title>低估遥遥插入入科</title>
<text>低估遥遥插入入科低估遥遥插</text>
</item>
</document>
flash 文件:
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
aa.html = true;
aa.htmlText = this;
}
};
myXML.load("exemple.xml");
问题:
输出的时候把XML的全部节点上文字都读出来了
怎样写才能输出自己想的文字
比如:我想只读<title>上文字 帮帮忙。。。。
2009年07月11日 06点07分
1
<?xml version="1.0" encoding="utf-8" ?>
<document>
<item>
<id>8888888888</id>
<title>低估遥遥插入入科</title>
<text>33333333333333</text>
</item>
<item>
<id>200972090834</id>
<title>低估遥遥插入入科</title>
<text>低估遥遥插入入科低估遥遥插</text>
</item>
</document>
flash 文件:
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
aa.html = true;
aa.htmlText = this;
}
};
myXML.load("exemple.xml");
问题:
输出的时候把XML的全部节点上文字都读出来了
怎样写才能输出自己想的文字
比如:我想只读<title>上文字 帮帮忙。。。。