Using
XML::XSH2 , I had to fix the script after downloading the XML: I hadn't had the namespace there, and I tried normalize-space instead of substitution which didn't work correctly.
open 1201438.xml ;
register-namespace xh http://www.w3.org/1999/xhtml ;
my $first = 1 ;
for //xh:div[@class='data'] {
if not($first) echo :n ', ' ;
$first = 0;
echo :s :n @id '=' xsh:subst(., '\W', '', 'g') ;
}
echo ;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,