Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XPath for non-empty #text nodes (tDOM) >Thread Next - Re: XPath for non-empty #text nodes (tDOM) Re: XPath for non-empty #text nodes (tDOM)To: NULL Date: 4/9/2008 8:56:00 PM In article <44qdncuBAoFht2DanZ2dnUVZ_s-pnZ2d@s...>, Mikhail Teterin <usenet+mill@a...> 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). -- Richard -- :wq | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
