- or download this
+---------+--------------------+-------------+
| artist | title | album |
...
| Genesis | Firth of Fifth | Seconds Out |
| Genesis | I Know What I Like | Seconds Out |
+---------+--------------------+-------------+
- or download this
SELECT * FROM SONGS
WHERE ARTIST='Genesis'
- or download this
<?xml version="1.0"?>
<DBI driver="database:host">
...
</ROW>
</RESULTSET>
</DBI>
- or download this
use strict;
use DBIx::XML_RDB;
...
$xmlout->DoSql("SELECT * FROM SONGS WHERE ARTIST='Genesis'");
print $xmlout->GetData();
- or download this
# XML::Simple
my $config = XMLin($xmlout->GetData);
...
# XML::Twig
my $t = new XML::Twig();
$t->parse($xmlout->GetData);
- or download this
my $out = $xmlout->GetData;
my $css = qq|<?xml-stylesheet type="text/css" href="songs.css"?>|;
...
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="songs.css"?>
<DBI driver="database:host">
- or download this
Alias /xml/ "/usr/local/apache/xml/"
<Directory "/usr/local/apache/xml">
...
Order allow,deny
Allow from all
</Directory>
- or download this
# index.xml (a CGI script in disguise)
use strict;
...
</html>
</xsl:template>
</xsl:stylesheet>