PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Axel Strembel   DOM Class   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example
Class: DOM Class
Transform XML classes using XSLT and DOM XML
Author: By
Last change:
Date: 18 years ago
Size: 429 bytes
 

Contents

Class file image Download
<?
include_once('DOMClass.php');

$clase = new DOMClass;

// Incluyo el archivo XML
$clase->XmlFile = "test.xml";

// Incluyo el archivo XSLT para aplicar la transformación (La salida es HTML)
$clase->XslFile = "test.xslt";

// Aqui se hace la transformación (la clase muestra el resultado)
// Los parametros opcionales son para mostrar el XML y el XSLT en pantalla
$clase->TransformFromXmlFile(true, true);
?>