
30/08/2007, 13:05
|
| | Fecha de Ingreso: noviembre-2006
Mensajes: 45
Antigüedad: 18 años, 6 meses Puntos: 1 | |
Re: asp y xml este es mi codigo asp con el que genero el xml
<%'valor es para sacar el contenido de la cookies del usuario
Response.ContentType = "text/xml"
set cnx = server.createobject("ADODB.CONNECTION")
set rst=server.createobject("ADODB.RECORDSET")
cnx.open "DSN=basedatos; UID=clave;PWD=123456"
Sql= "SELECT * FROM Contador"
rst.Open sql,cnx,1,3
rst.MoveFirst()
response.write("<? xml version='1.0' ?>")
response.write("<noticias>")
while (not rst.EOF)
response.write("<nota>")
response.write("<articulo>" & rst("IdArticulo") & "</articulo>")
response.write("<titulo>" & rst("TituloNoticia") & "</titulo>")
response.write("</nota>")%><%
rst.MoveNext()
wend
rst.close()
cnx.close()
response.write("</noticias>")
%>
les agredeceria si me pudieran ayudar |