[plexippus-xpath-devel] Beginner: trying out xpath

Andrei Stebakov lispercat at gmail.com
Sun Nov 28 04:49:13 UTC 2010


I just found that it's possible to (stp:serialize ...) using
(xpath:first-node ...), or just iterating over the nodes.

Thank you,
Andrew

On Sat, Nov 27, 2010 at 11:39 PM, Andrei Stebakov <lispercat at gmail.com> wrote:
> What method do you use to serialize the result returned by
> (xpath:evaluate ....) back to string?
> I assume (stp:serialze ...) won't work on xpath:node-set.
>
> Thank you,
> Andrew
>
> On Sat, Nov 27, 2010 at 9:14 AM,  <rm at tuxteam.de> wrote:
>> On Fri, Nov 26, 2010 at 10:27:52PM -0500, Andrei Stebakov wrote:
>>> Now that I updated to the latest git clone (I am using quicklisp), the
>>> crash doesn't happen anymore, but all requests to "body" or "//body"
>>> return an empty node-set.
>>
>>
>> Which is correct  ;-)
>> Your XPath expression is wrong, you're looking for a 'body' element in
>> the null-namespace but you html most likely is in the 'http://www.w3.org/1999/xhtml'
>> namespace.
>>
>>  HTH  Ralf Mattes
>>
>>
>




More information about the plexippus-xpath-devel mailing list