do not generate xml if no attribute + doc fix
Merge pull request #1 from llicour/master

some bugfix...