In Enterprise Architect, the PayloadPublication class has got an attribute "defaultLanguage". The Tool produces an inline attribute with name "lang", i.e. there is a discrepance between the names in the EA 'pictures' and in the resulting XSD or XML files.
(This might be a model issue and/or as a Tool issue)..
To be considered whether this is still a problem in Version 3.0.
This is by design.
There are two tagged vales that makes this happen
attribute = yes, makes it a attribute instead of an element
schemaName = lang, translates defaultLanguage to lang
If I remember right, this was chosen to follow best practises for designen XML schema / XML.