Attributes can be missing from XML file

Some attributes (live, name) can be missing from the generated hotspot.log file. This fixes the problem.

Note that this PR depends on the support for locale too.