Skip to content

Instantly share code, notes, and snippets.

@dmcassel
Created January 2, 2014 21:40
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 dmcassel/8227442 to your computer and use it in GitHub Desktop.
Save dmcassel/8227442 to your computer and use it in GitHub Desktop.
xquery version "1.0-ml";
import module namespace functx = "http://www.functx.com" at "/MarkLogic/functx/functx-1.0-nodoc-2007-01.xqy";
declare namespace dmc = "dmc";
declare variable $stuff :=
<doc>
<content>
<change-me my-attr="look at me">some text</change-me>
<count>1</count>
<name>Fred Smith</name>
</content>
</doc>;
functx:change-element-names-deep(
$stuff,
xs:QName("change-me"),
xs:QName("dmc:change-me")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment