import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; import module namespace parse-xml = "http://www.zorba-xquery.com/modules/xml"; import schema namespace opt = "http://www.zorba-xquery.com/modules/xml-options"; let $xmlcontents := trace( fetch:content("acc.xml"), "fetch") (: Note: using this instead of pars-xml:parse works... let $contents := trace( fn:parse-xml($xmlcontents), "fn:parse") :) let $contents := trace (parse-xml:parse( $xmlcontents, ), "parse") for $article at $pos in $contents return { trace( $article//title/text(), "return..") }