Jonas,
The easy way is to either borrow or purchase a Lintronic box ( http://www.lintronic.dk/ ) which will allow you to capture the IR timings of each command, then either use the Beoworld XML Converter (Must be Silver or Gold member) which will convert these timings to a Beo5 XML file.
The timings produced for each command will be in the following format as an example:-
Pulse, Pause in micro-seconds
09032,04516 = 13548
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,01681 = 2232
00551,01681 = 2232
00551,00551 = 1102
00551,00551 = 1102
00551,01681 = 2232
00551,00551 = 1102
00551,00551 = 1102
00551,00551 = 1102
00551,00551 = 1102
00551,00551 = 1102
00551,01681 = 2232
00551,01681 = 2232
00551,00551 = 1102
00551,01681 = 2232
00551,01681 = 2232
00551,24813 = 25364
There is also software available for PDA's which will also capture IR code timings