Geert, yes, that solves my problem. Thanks again for your quick help.
Jakob. On Wed, Jun 24, 2009 at 11:20, Geert Josten <[email protected]>wrote: > Hi Jakob, > > You have to take the namespace into account. Declare the namespace and > prefix the element names in your xpath, or prepend *: to the element names.. > > Kind regards, > Geert > > > > ** > > *Drs. G.P.H. Josten* > > *Consultant* > > > > > <http://www.daidalos.nl/> > > *Daidalos BV* > > *Source of Innovation* > > Hoekeindsehof 1-4 > > 2665 JZ Bleiswijk > > Tel.: +31 (0) 10 850 1200 > > Fax: +31 (0) 10 850 1199 > > www.daidalos.nl > > KvK 27164984 > > ** > > De informatie - verzonden in of met dit emailbericht - is afkomstig van > Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan > dit bericht kunnen geen rechten worden ontleend. > > > > *Van:* [email protected] [ > [email protected]] namens Jakob Fix [ > [email protected]] > *Verzonden:* woensdag 24 juni 2009 10:12 > *Aan:* [email protected] > *Onderwerp:* [MarkLogic Dev General] xdmp:http-head questions > > Hi, > > I have two questions related to xdmp:http-head. > > One, I need to check the availability of a number of URLs. xdmp:http-head > seems to be the appropriate method. Is it correct to assume that the best > way to handle timeouts and 404s is to use try {} catch blocks and look at > the error message's code value? > > Two, the documentation is not really clear about the possible responses. > > let $head := xdmp:http-head($aUrl) > let $httpCode :=$head[1]/response/code (: => returns an empty sequence :) > > In cq, I can see the XML of the $head, but trying to access elements inside > always returns an empty sequence. How can I access the contents of the XML > response? > > thanks, > Jakob. > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
