http://www.perlmonks.org?node_id=1011173


in reply to DBI accessing SQLite with XML data

I would recommend redesigning your database schema. Parse xml and insert into table.
CREATE TABLE mytable ( id INTEGER PRIMARY KEY, element TEXT, items TEXT, item TEXT, data TEXT, UNIQUE(element, items, item, data) );
Then you can do the following:
sqlite> SELECT ("element" || "/" || "items" || "/" || "item" || "/" || + "data") AS source where source like '%some string%';