PHP Classes

File: sample_bookshop.php

Recommend this page to a friend!
  Classes of Tom Schaefer   QXML   sample_bookshop.php   Download  
File: sample_bookshop.php
Role: Example script
Content type: text/plain
Description: Transform Bookshop XML to Symfony Schema
Class: QXML
XML <> Array (preserve attrib.), JSON, etc.
Author: By
Last change:
Date: 15 years ago
Size: 255 bytes
 

Contents

Class file image Download
<?php

include_once("QTransform.class.php");

$INXML = "demo_bookshop.xml";
$INXSL = "dbd2propel.xsl";

$xml = simplexml_load_file($INXML);
// Transform
header("content-type:text/xml");
$qt = new QTransform();
echo
$qt->toXML($xml, $INXSL);
?>