in reply to Re: Help XML Search and replace
in thread Help XML Search and replace

What you have gave to me work but I can't change any value. It seems my loops doesn't search the appropriate value. Any ideas?? Thanks

Replies are listed 'Best First'.
Re^3: Help XML Search and replace
by borisz (Canon) on Sep 28, 2004 at 21:03 UTC
    It would be helpful if you tell us, what you like to modify.
    This little peace of code show your data structure.
    use Data::Dumper; my $d = XMLin( (join'', <DATA>), KeyAttr => 1, 'ForceArray' => [qw/subcategory product prod_id/] ); print Dumper($d);
    Boris
      I fix up the bug. I didn't put correctly the name of the arrays into my loop. What you give me really works. Thanks a lot Man ;).