Implemented xml config generation.

Fixed errors in annotations on xml config.