How to load a text file from within an XQuery? -
is there xquery command load text file?
i can load xml document doing following;
declare variable $text := doc("test.xml"); but seems work if test.xml well-formed xml document. want load plain test.txt file string variable. this;
declare variable $str xs:string := fn:loadfile("test.txt"); can done?
i'm using saxon engine can't find answer in saxon documentation.
indeed can find 1 implementation of file functions in zorba: http://www.zorba-xquery.com/doc/zorba-1.4.0/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_file.html
Comments
Post a Comment