I\'m using a class generated by xsd2code++. It is working well except it creates one extra child level for a complexType: