it's not letting me print anything after </url>

xquery version '1.0-ml';
declare namespace xh='http://www.w3.org/1999/xhtml';
let $html := xdmp:tidy(xdmp:http-get('
http://avalonconsult.com/about_us/news')[2])[2]
for $post in $html//xh:l...@class='leaf']
return
try {
<url>{ fn:concat("http://avalonconsult.com
",fn:string($post//xh:a/@href))}</url>
<title></title>
}catch($e)
fn:concat("Problem..",$e/error:message/text())
}


-- 
Thx
Varinder Tandon
Avalon Consulting LLC
Cell:917-376-6802
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to