ravi06 has asked for the wisdom of the Perl Monks concerning the following question:
The following piece of code cancatenates the result of both xpaths.
I want to first check value of Id in xapth1 and if it is not present, it should look into xpath2.foreach my $node ($xpc->findnodes('/xpath1 | /xpath2')) { foreach my $col(qw/Id Title Book Publisher Platform/) { print $xpc->findvalue($chapter_columns{$col}, $node); } }
Back to
Seekers of Perl Wisdom