import module namespace http = "http://www.zorba-xquery.com/modules/http-client"; 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 $url := "http://s3.amazonaws.com/mauro.28msec.com/wiki.xml" let $xmlcontents := http:get-text( $url )[2] (: Writing the following instead works: variable $xmlcontents := http:get-text("http://s3.amazonaws.com/mauro.28msec.com/wiki.xml")[2]; :) let $contents := parse-xml:parse( $xmlcontents, ) return $contents