Suppose I have the following HTML:
One Two
How about this:
$("li:not(.foo > li)")
The comments in the docs are quite useful if this doesn't work:
http://api.jquery.com/not-selector/