Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $myQuery = $dbh->prepare( "SELECT source FROM myTable" ); $source =~ s/<element xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema +-instance\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"><items +><item><data>//g; $source =~ s/<\/data><\/item><\/items><\/element>//g;
( "SELECT ('/element/items/item/data') as source FROM myTable WHERE so +urce LIKE '%some string%'" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI accessing SQLite with XML data
by bart (Canon) on Dec 31, 2012 at 12:04 UTC | |
|
Re: DBI accessing SQLite with XML data
by Jim (Curate) on Jan 01, 2013 at 04:05 UTC | |
by vagabonding electron (Curate) on Jan 01, 2013 at 09:37 UTC | |
|
Re: DBI accessing SQLite with XML data
by Anonymous Monk on Dec 31, 2012 at 08:55 UTC | |
by Anonymous Monk on Dec 31, 2012 at 10:34 UTC | |
by NetWallah (Canon) on Dec 31, 2012 at 17:17 UTC | |
by Anonymous Monk on Jan 01, 2013 at 00:21 UTC | |
|
Re: DBI accessing SQLite with XML data
by Anonymous Monk on Jan 01, 2013 at 18:17 UTC | |
|
Re: DBI accessing SQLite with XML data
by thargas (Deacon) on Jan 02, 2013 at 13:40 UTC |