Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: DBI accessing SQLite with XML data

by bart (Canon)
on Dec 31, 2012 at 12:04 UTC ( #1011055=note: print w/ replies, xml ) Need Help??


in reply to DBI accessing SQLite with XML data

It looks to me like you want something like XPath, and use it on data from the database.

I'd use an ordinary "LIKE" SQL expression to weed out most of the uninteresting results in SQL, and then with XPath, refine it, and extract exactly the data you're after.

As for modules, I may be biased, but I'd look at XML::LibXML's XML::LibXML::XPathContext and XML::LibXML::XPathExpression first.


Comment on Re: DBI accessing SQLite with XML data

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2014-10-01 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (38 votes), past polls