Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/04/2003, 12:13
Avatar de MsTech.DotNet
MsTech.DotNet
 
Fecha de Ingreso: marzo-2003
Ubicación: Maracay - Edo. Aragua
Mensajes: 605
Antigüedad: 21 años, 10 meses
Puntos: 0
Hola Cotor...

Mira si lo que quieres es conectar un xml con un html por ejemplo que la informacion que esta en un archivo xml mostrarla con formato en una tabla html, aqui te pongo un ejemplo...


Archivo xml...
----------------
Código PHP:
<?xml version="1.0" encoding="ISO-8859-1" ?> 
<ALUMNOS> 
  ALUMNO> 
    <NÚMERO>1</NÚMERO> 
    <NOMBRE>Ramón</NOMBRE> 
    <APELLIDO>Montero</APELLIDO> 
    <NIVEL>Introducción</NIVEL> 
    <CURSO>XML</CURSO> 
  </ALUMNO> 
  <ALUMNO> 
    <NÚMERO>2</NÚMERO> 
    <NOMBRE>Jaime</NOMBRE> 
    <APELLIDO>de Yraolagoitia</APELLIDO> 
    <NIVEL>Avanzado</NIVEL> 
    <CURSO>Windows 2000</CURSO> 
  </ALUMNO> 
  <ALUMNO> 
    <NÚMERO>3</NÚMERO> 
    <NOMBRE>José Manuel</NOMBRE> 
    <APELLIDO>Alonso</APELLIDO> 
    <NIVEL>Básico</NIVEL> 
    <CURSO>HTML</CURSO> 
  </ALUMNO> 
  <ALUMNO> 
    <NÚMERO>4</NÚMERO> 
    <NOMBRE>María Teresa</NOMBRE> 
    <APELLIDO>Gómez</APELLIDO> 
    <NIVEL>Avanzado</NIVEL> 
    <CURSO>UNIX</CURSO> 
  </ALUMNO> 
</ALUMNOS>
Archivo html...
------------------
Código PHP:
<table datasrc="#ListaAlumnos1"
<
caption>LISTA DE ALUMNOS</caption
<
thead
<
th>Núm</th
<
th>Nombre</th
<
th>Apellido</th
<
th>Curso</th
<
th>Nivel</th
</
thead
<
tbody
<
tr
<
td><span datafld="número"></span></td
<
td><span datafld="nombre"></span></td
<
td><span datafld="apellido"></span></td
<
td><span datafld="curso"></span></td
<
td><span datafld="nivel"></span></td
</
tr
</
tbody
</
table
Espero que te ayude en algo...

Saludos...
__________________
Ing. Javier Ugalde
Desarrollador de Aplicaciones Web / Windows
Director de Desarrollos Web
Ing. en Información
Email: [email protected]
Telf. Hab: +[58] - (243) - 232.02.06
Telf. Cel: +[58] - (414) - 455.26.80