RE: perl-ish way to deal with footnotes in an XML document
by Mark - BLS CTR Thomas other posts by this author
Jul 19 2007 11:37AM messages near this date
view in the new Beta List Site
Re: perl-ish way to deal with footnotes in an XML document
|
Re: perl-ish way to deal with footnotes in an XML document
& XSLT > That's good to know. Do you have any suggestions how exactly I might
> go
> about it, then?
>
> I tried this with XML::LibXML:
>
> my $children = $seg->findnodes('child::*');
> foreach my $child ($children->get_nodelist) {
> print $child->textContent ;
> my $name = $child->nodeName;
> print "$name \n";
> }
I'm pretty sure * returns only elements, not text nodes. Try this
instead:
foreach my $child ($seg-> childNodes) {
my $name = $child-> nodeName;
print "$name\n";
}
- Mark.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Birgit Kellner
Mark - BLS CTR Thomas
Birgit Kellner
Mark - BLS CTR Thomas
A. Pagaltzis
Birgit Kellner
Joshua Santelli
Petr Pajas
|