Automatically generate XML comment