XML metal decoding