in reply to Re^6: Another problem with XML parser
in thread Another problem with XML parser

$Number is overwritten at the start of the header. See line 32.

$Number=$attr{Number};

There is never a reason not to use strict and warnings, strict, warnings.