http://qs321.pair.com?node_id=1045336

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.
foreach my $node ($xpc->findnodes('/xpath1 | /xpath2')) { foreach my $col(qw/Id Title Book Publisher Platform/) { print $xpc->findvalue($chapter_columns{$col}, $node); } }
I want to first check value of Id in xapth1 and if it is not present, it should look into xpath2.