Fixing XML loader, the nsamples value can sometimes be in another field.