Created
January 2, 2014 21:40
-
-
Save dmcassel/8227442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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