do not generate xml if no attribute + doc fix