![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: get text from node - XML::LibXMLby corfuitl (Sexton) |
on Jul 20, 2018 at 11:47 UTC ( #1218892=note: print w/replies, xml ) | Need Help?? |
Hi, Thank you for your help. I gave it a try and it works when it has tags. However, there are cases where the extracted text doesn't contain tags (i.e. <seg><foo mid="0" mtype="seg">Need to export this text</foo></seg>.i used this one my $mrktext = $mrk->getElementsByTagName ('*')->shift->toString; .
In Section
Seekers of Perl Wisdom
|
|