in reply to Re^4: xml::xslt xpath bug?
in thread xml::xslt xpath bug?
Example:
my @forms = $xpc->findnodes('/plm:PLMXML/plm:Form'); for my $form (@forms) { print( $form->getAttribute('subClass'), "\n" ); ... }
Example:
my ($form) = $xpc->findnodes( '/plm:PLMXML/plm:Form[subClass="Part Revision Master"]' ) or die("Can't find Part Revision Master form\n"); print($form->getAttribute('id'), "\n"); # id24
Update: Added examples.
Update: Fixed examples.
|
|---|