Source for file case04.php
Documentation is available at case04.php
require_once('XML/Query2XML.php');
$dom = $query2xml->getXML (
'rootTag' => 'MUSIC_LIBRARY',
'idColumn' => 'artistid',
'BIRTH_YEAR' => 'birth_year',
'BIRTH_YEAR_TWO_DIGIT' => "!return substr(\"{\$record['birth_year']}\", 2);",
'BIRTH_PLACE' => 'birth_place',
'query' => 'SELECT * FROM album WHERE artist_id = ?'
'merge_selective' => array ('genre')
'PUBLISHED_YEAR' => 'published_year',
'ARTISTID' => 'artistid',
'MAINTAINER' => ':Lukas Feiler'
header('Content-Type: application/xml');
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
require_once('XML/Beautifier.php');
$beautifier = new XML_Beautifier ();
print $beautifier->formatString ($dom->saveXML ());
Documentation generated on Mon, 11 Mar 2019 14:47:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|