XMLDecoder improvements