An open API service indexing awesome lists of open source software.

https://github.com/asg017/sqlite-xml


https://github.com/asg017/sqlite-xml

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# sqlite-xml

A work-in-progress SQLite extension for querying XML! Not meant to be widely shared.

Once it's ready, you'll be able to do things like:

```sql
select xml_extract(readfile('student.xml'), '//student/name/text()'); -- 'Alex Garcia'

select
xml_extract(node, './/text()') as text
from xml_each(
'

Alex
Brian
Craig

',
'//item'
);

/*
┌───────┐
│ text │
├───────┤
│ Alex │
│ Brian │
│ Craig │
└───────┘
*/
```