To find out how many product are in $nameyou can just do my $nb_product= $name->children( 'product'); (that's children in scalar context, in list context you would of course get the list of product children).
As for the name space question could you please explain a little more what you want to do and what you have tried so far, I am pretty sure there is nothing about name spaces in the XML::Twig documentation.
This post brought to you courtesy of tonio
In reply to Re: Trying to use XML::Twig
by mirod
in thread Trying to use XML::Twig
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |