xpath questions...
bruce
bedouglas at earthlink.net
Sat Aug 23 03:29:58 EDT 2008
Hi...
playing around with xpath and the html dom...
i've got a sample:
html
body
form action='foo' name='cat'....
/form
/body
/html
i can create a test xpath:
//form/[action
and get the form stuff...
i'm curious, is there a way to select an attribute, only if another
attribute in the element is set to a given value??
something like
//form/[@action='foo'][@name]
which would try to return name, if the action==foo....
didn't see this in any of the docs that i reviewed.. nor could i get it to
work when i was playing around with xpather on firefox..
thoughts/comments/pointers...
thanks
More information about the Python-list
mailing list