Created
October 10, 2019 18:43
-
-
Save prestonmcgowan/50a43a7d08c9c64439d17db8717115fa to your computer and use it in GitHub Desktop.
Decode a hex binary with XQuery
This file contains hidden or 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
(:: Decode a hex binary ::) | |
xquery version "1.0-ml"; | |
xdmp:save( | |
"D:\save.json", | |
binary{ xs:hexBinary( fn:doc("/big-json.xml")//hexbin/node() ) } | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment