Re: Selecting XML elements by id?



> And, much to my surprise, the following is invalid syntax:
>
> $doc->xql("//span[@id='myid']");

Invalid, yes, but only because I was dumb. That '@' sign is (obviously,
in retrospect) getting eaten by perl. What I meant was:

$doc->xql("//span[\@id='myid']");

And this works fine.

I'm still not sure why this doesn't work:

$doc->xql("id('myid')");

-- Lars

--
Lars Kellogg-Stedman <1o4ibj70m3vooae@xxxxxxxxxxx>
This email address will expire on 2005-11-22.

.