saurabh.x.pandey has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: XML::Twig parsing Problem
by mirod (Canon) on Dec 01, 2008 at 11:23 UTC

    First, how about using the "preview" button instead of posting something totally mangled? That will help you get proper answers.

    If you trigger the handler on all name elements, then it will be called on all name elements. You need to specify that you want the handler to be called only for name elements with an attribute att with the proper value. The docs for the handlers will tell you that you can use an XPath expression: name[@att="cde"]. Depending on how you quote that string, you might need to escape the @.

    A reply falls below the community's threshold of quality. You may see it by logging in.