Optimized namm xml generation