Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/09/2008, 00:13
Avatar de angel_dope
angel_dope
 
Fecha de Ingreso: noviembre-2002
Ubicación: Valencia
Mensajes: 737
Antigüedad: 24 años
Puntos: 8
Respuesta: Busquedas sobre archivo XML

Hola u_goldman, el error lo da en esta linea:

Código PHP:
    response.write(objxml.selectSingleNode("/Integracion/Alumnos[@Accion='Nuevos']").childNodes(n).childNodes(0).Text) 
Pero te pongo el código completo por si acaso:

Código PHP:
set objXml = server.CreateObject("MSXML2.DOMDocument")
objxml.async = false

' Aqui cargamos el archivo en el objeto
objxml.load(server.MapPath("./tmp/"&Request.ServerVariables("Remote_Addr")&".xml"))

' 
Gestion de errores
if objxml.parseError.errorCode <> 0 Then
        response
.Write("Error de Lectura (Por favor, ponerse en contacto con el webmaster).<br />FilePos: " & objxml.parseError.filepos & "<br /> Línea: " & objxml.parseError.Line & "<br /> Causa: " & objxml.parseError.reason & "<br /> Ocurrió en: " & objxml.parseError.srcText & "<br /> Archivo: " & objxml.parseError.URL)
        
response.End()
end if

' Averiguamos cuantas noticias tenemos
numNoticias = objxml.selectSingleNode("/Integracion/Alumnos[@Accion='
Nuevos']").childNodes.length
Response.write("NUMERO: " & numnoticias)
 
 
for n = 0 to numNoticias 
    response.write("<br>")
    response.write(objxml.selectSingleNode("/Integracion/Alumnos[@Accion='
Nuevos]").childNodes(n).childNodes(0).Text)
next 
__________________
Vayamos por Partes :: Jack el Destripador