while ($xml =~ m/<Product>(.*?)<\/Product>/g) { push @products, $1; }
Where $xml contains your data as a string, and @products is an array of the individual Product element contents.
In reply to Re: split an xml file into pieces
by TJPride
in thread split an xml file into pieces
by vamsi.padakandla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |