in reply to Re^6: xml::twig delete element
in thread xml::twig delete element

It would be very similar: 1 pass to build the %self2pnam map, same as in the code above, except maybe adding a $_->purge at the end of the handler. The second pass would have a handler on content that would do exactly what's in the foreach loop.

At this point, I believe you have all the elements to write the code yourself.

Replies are listed 'Best First'.
Re^8: xml::twig delete element
by Selvakumar (Scribe) on Oct 14, 2009 at 10:59 UTC
    i tried but the hash value not passed to the content_handler. how can i do that? I have one more clarification regarding keep_atts_order. i am using keep_att_order=>1 in the twig_handler but it's not kept my all attributes in the same order which i have added like below
    $content->set_atts({bid=>$bidvar, aid=>$aidvar, att=>'', pgnbr=>$pgnbr +var});