Im Sorry for delay, i hope you can read my code.
First you need to take a look on
function explodeKennfeldPaket($thisKennfeldPaket)
This will cut the header and footer from kp file
After that you should take a look on
function filterKennfeld($thisKennfeld)
This function is very difficult but ill try to help so much i can.
But this will not work with the newest .kp format. The newest one is compressed and crypted
Hi mazer.
I stumbled upon your file here and asked myself if you are interested in writing a documentation about the kp file format with me.
I noticed you are german too, I think the communication would be very easy like this. I've been working with PHP and other languages for years now.
Just hit me up with what you think about this.
@nyet:
I thought about building a library in java to read / write kp files. This could be used in the me7-tool. Like this, we could automatically generate XML files for map recognition.