in reply to DBI accessing SQLite with XML data
I would recommend redesigning your database schema. Parse xml and insert into table.
Then you can do the following:CREATE TABLE mytable ( id INTEGER PRIMARY KEY, element TEXT, items TEXT, item TEXT, data TEXT, UNIQUE(element, items, item, data) );
sqlite> SELECT ("element" || "/" || "items" || "/" || "item" || "/" || + "data") AS source where source like '%some string%';
|
---|
In Section
Seekers of Perl Wisdom