Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Upload a directory of XML files into eXist-db, with XQuery
xquery version "3.0";
(: Set the absolute file path appropriate for your OS :)
let $source-directory :=
(: Mac :)
(: '/Users/Joe/workspace/myapp/data' :)
(: Windows :)
'C:\Users\wicentowskijc\workspace\myapp\data'
let $target-collection :=
'/db/apps/myapps/data'
return
xmldb:store-files-from-pattern($target-collection, $source-directory, '*.xml')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.