View Single Post
Old 04-25-2011, 11:05 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Friend of mine did this regex:

Code:
$xml =~ s#<(performerinfo)>(.*?)</\1>
         #{
             my ($tmp, $data) = ($2);
             $tmp =~ s|<(\w+)><!\[CDATA\[(.*?)\]\]></\1>
                      |{$data->{$1}=$2}|sgex;
            push(@models, $data)
         }#sgex;
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote