From: "Ken Burcham" <[EMAIL PROTECTED]> > I hope this isn't a FAQ (famous last words) but I'm trying to get to processing > instructions (xslt PI's) in a libxml dom. I don't see a method like getProcessingInstruction > or anything... This isn't directly related to axkit, but... > > my $doc = $parser->parse_string($xml); > > my $root = $doc->documentElement(); > > I'd like to be able to do something like: > > my @pinodes = $root->getProcessingInstructions; > > or something... > > I see I might be able to do ->findNodes(xpath) or something but isn't there a better way?
$doc->findnodes('//processing-instruction()'); Matt. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]