EdwardKing
11-23-2008, 12:46 PM
I have a XML
<atag> <btag>rose </btag> <ctag> <dtag>doctor </dtag> <dtag>sale </dtag> </ctag> </atag>
use ajax to obtain the value of dtag:
var counts=this.xmlHttp.responseXML.getElementsByTagName("ctag");
for(var i=0;i <counts.length;i++){
//how ot get the value of dtag,such as show 'doctor' and 'sale'?
Thanks in advance!
<atag> <btag>rose </btag> <ctag> <dtag>doctor </dtag> <dtag>sale </dtag> </ctag> </atag>
use ajax to obtain the value of dtag:
var counts=this.xmlHttp.responseXML.getElementsByTagName("ctag");
for(var i=0;i <counts.length;i++){
//how ot get the value of dtag,such as show 'doctor' and 'sale'?
Thanks in advance!