Re: A whitespace issue in XML::LibXML
by Vaclav Barta other posts by this author
Jul 20 2007 11:54AM messages near this date
view in the new Beta List Site
Re: A whitespace issue in XML::LibXML
|
Re: A whitespace issue in XML::LibXML
& XSLT On Friday 20 July 2007 20:27, Birgit Kellner wrote:
> Petr Pajas schrieb:
> > First of all, why do you do that "by hand"? To get all text nodes
> > from a subtree nicely concatenated, you can use e.g.
> >
> > $text = $node->findvalue('string(.)')
>
> I should have been more specific on that. I'm not interested in all text
> nodes, but in text node children of the element <seg>, and in text node
seg/text()
> children of the element <span> that can be contained within <seg>. <seg>
seg/span/text()
XPath may not be very perlish, but it's quite useful...
Bye
Vasek
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Birgit Kellner
Petr Pajas
Birgit Kellner
A. Pagaltzis
Vaclav Barta
Birgit Kellner
Richard E. Rathmann
Vaclav Barta
Petr Pajas
Vaclav Barta
Mark - BLS CTR Thomas
|