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); } }
In reply to How can I force findnodes() to check value of attributes in either xpath1 or xpath2? by ravi06
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |