Hi,
I have the following code that works fine except the getAttribute line:
var xmlDoc = new ActiveXObject(" Microsoft.XMLDO M");
xmlDoc.async="f alse";
xmlDoc.load("no te.xml");
nodes = xmlDoc.document Element.childNo des;
text = '<p>note:<br>' ;
for (var i=0; i<nodes.length ; i++) {
title = nodes.item(i).f irstChild.text;
value = nodes.item(i).f irstChild.getAt tribute('id');
text+= title+':'+value ;
}
text+= '</p>';
an example of the xml nodes are:
<?xml...
<all>
<node id="1">text</node>
<node id="2">text</node>
<node id="3">text</node>
I have the following code that works fine except the getAttribute line:
var xmlDoc = new ActiveXObject(" Microsoft.XMLDO M");
xmlDoc.async="f alse";
xmlDoc.load("no te.xml");
nodes = xmlDoc.document Element.childNo des;
text = '<p>note:<br>' ;
for (var i=0; i<nodes.length ; i++) {
title = nodes.item(i).f irstChild.text;
value = nodes.item(i).f irstChild.getAt tribute('id');
text+= title+':'+value ;
}
text+= '</p>';
an example of the xml nodes are:
<?xml...
<all>
<node id="1">text</node>
<node id="2">text</node>
<node id="3">text</node>
Comment