Page 1 of 1

Select only nodes that have no parent with specific attribut

Posted: Thu Mar 19, 2009 8:01 pm
by crazycoders
I'd like to build an xpath query for php's domxml extension that does the following:

Select all nodes that have the attribute: runat="server"
But, the node selected in this way must not be a child of another node that has a runat="server" attribute

Is this possible?