go ahead... be a heretic | |
PerlMonks |
Need help for Xpath patternsby Anusha (Initiate) |
on May 25, 2012 at 09:34 UTC ( [id://972388]=perlquestion: print w/replies, xml ) | Need Help?? |
Anusha has asked for the wisdom of the Perl Monks concerning the following question: I have a scenario like...
I need to fetch the text content of <c> node where multiple space is found betweeen words. The pattern I am using is <code>//*[*contains(.," ")]<code>But the pattern matches 3 different datas 1) Test case 1Test case 2Test case 3 (text content of "a tag""b tag""c tag" is appended) 2) Test case 2Test case 3 (text content of "b tag""c tag" is appended) 3) Test case 3 (text content of "c tag") But I need only the text content of <c> node...Please help
Back to
Seekers of Perl Wisdom
|
|