Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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