Skip to content

Instantly share code, notes, and snippets.

@wcandillon
Created September 30, 2011 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wcandillon/1253226 to your computer and use it in GitHub Desktop.
Save wcandillon/1253226 to your computer and use it in GitHub Desktop.
import module namespace guestbook = "http://www.28msec.com/templates/guestbook/guestbook";
import module namespace xqddf = "http://www.zorba-xquery.com/modules/xqddf";
let $entries := fn:doc("xml_files/old_entries.xml")//entry
return
xqddf:insert-nodes(xs:QName("guestbook:entries"), $entries)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment