Grant MacKenzie
2017-04-25 21:18:26 UTC
Check your dataset instance with 'instance of'
I think you will find you want a 'instance of element()'
not 'instance of document-node()' for your result dataset
try to get the root element with '/*'
eg. /db/ehr/v2')//DataSet[HDSN00.01.013/@value="a894317f-53da-486f-a1df-cea23200273d"]/*
http://www.xqueryfunctions.com/xq/functx_node-kind.html
http://stackoverflow.com/questions/8554543/element-vs-node-in-xquery
I think you will find you want a 'instance of element()'
not 'instance of document-node()' for your result dataset
try to get the root element with '/*'
eg. /db/ehr/v2')//DataSet[HDSN00.01.013/@value="a894317f-53da-486f-a1df-cea23200273d"]/*
http://www.xqueryfunctions.com/xq/functx_node-kind.html
http://stackoverflow.com/questions/8554543/element-vs-node-in-xquery
--
Take Care
Grant Mackenzie
Take Care
Grant Mackenzie