Re: XPath for non-empty #text nodes (tDOM)
In article <44qdncuBAoFht2DanZ2dnUVZ_s-pnZ2d@speakeasy.net>,
Mikhail Teterin <email@example.com> wrote:
>What's would be the syntax for a query, which would allow me to get only the
>elements with non-empty text-nodes?
Presumably you mean direct text children (rather than descendants),
and by "non-empty" you mean "containing something other than whitespace".
If so, try
*[normalize-space(text()) != ""]
(or with // at the start, depending on the context).
|All times are GMT. The time now is 11:13 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.