![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/09/2005, 03:43
|
| | Fecha de Ingreso: agosto-2003 Ubicación: Barcelona
Mensajes: 83
Antigüedad: 21 años, 6 meses Puntos: 0 | |
XML con javascript Os paso el siguiente código:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<script type="text/vbscript">
Function LoadXML (xml)
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load(xml)
//LoadList(xmlDoc)
End Function
Function LoadList(xmlDoc)
set xmlNodeList = xmlDoc.selectNodes("//art")
for i = 0 to xmlNodeList.length - 1
document.write (xmlNodeList.Item(i).Attributes.getNamedItem("desc ripcion").nodeValue)
document.write("<br>")
next
End Function
Function childArt(xmlDoc)
set xmlNodeList = xmlDoc.selectNodes("//art")
childArt = xmlNodeList.length
End Function
//LoadXML("articulos.xml")
</script>
<body onload="LoadXML('articulos.xml')">
<table>
<tr> <td>
</td> </tr>
</table>
</body>
</html>
lo que quiero hacer es que me pinte tantos td como nodos hijos tenga son 15 nodos hijos
como lo puedo hacer |