Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

DBIx::XML_RDB Tutorial

by jeffa (Bishop)
on Apr 10, 2001 at 02:28 UTC ( #71192=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://71192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2020-05-29 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (170 votes). Check out past polls.

    Notices?