Use DOM parsing for finding out KAF languages.

This is a bit more robust than using the XML reader API.
Release 2.0.1.