Hi Siva,

BTW what do you want to achieve? You can't use
fn:concat($file//dir:pathname/text())
in this way.  Please refer https://docs.marklogic.com/fn:concat.

Might be you use fn:string-join() instead however not sure about your
requirement.

e.g
let $file := xdmp:filesystem-directory($DIR_URI)
let $fileName :=  fn:string-join($file//dir:pathname/text(), ",")
return $fileName

Regards,
Indy

On Mon, Feb 15, 2016 at 4:52 PM, Mani, Sivasubramani (ELS) <
s.m...@elsevier.com> wrote:

> Hi Team,
>
>
>
> I want to convert element value to string in marklogic but I got an error
> my code was here
>
>
>
> let $DIR_URI := "/data/reports/"
>
>
>
> for $file in xdmp:filesystem-directory($DIR_URI)
>
> let $fileName :=  fn:concat($file//dir:pathname/text())
>
> return $file//dir:pathname/text()
>
>
>
> *XDMP-ARGTYPE: (err:XPTY0004)
> fn:concat($file/descendant::dir:pathname/text()) -- arg0 is not of type
> xs:anyAtomicType?*
>
> Kindly do the needful as soon as possible. Thanks in advance
>
>
>
> Thanks & Regards,
>
> Siva
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to