Is there anyway I can select nodes only contains whitespace (  ,   , 	
) using xpath..
here is a example,
<doc>
<p> </p>
<p> </p>
<p> </p>
<p>text</p>
<p> text</p>
<p> text</p>
</doc>
I need to select the first 3 <p>
nodes which only contains whitespace elements