By using ->children() all elements in the subtree will be selected but I want only the immediate children
HTML Code :
<html>
<head>
</head>
<body>
<div id="hello">
<p>Select This</p>
<p>Select This</p>
<p>Select This</p>
<div>
<p>Don't Select This</p>
</div>
</div>
</html>
--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
@Matt
Thank You,
But if you means somthing like that htmlqp('hello.html')->find('#hello')->children('>p')->count();
It is still select all paragraphs that not immediately children of #hello
--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.