Re: Selecting XML elements by id?
- From: Lars Kellogg-Stedman <1o4ibj70m3vooae@xxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 15:56:51 -0600
> 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.
.
- References:
- Selecting XML elements by id?
- From: Lars Kellogg-Stedman
- Selecting XML elements by id?
- Prev by Date: Selecting XML elements by id?
- Next by Date: Re: Perl socket problem
- Previous by thread: Selecting XML elements by id?
- Next by thread: Re: Perl socket problem
- Index(es):