simpleContent creates string array instead of Value properties

Nov 24, 2010 at 8:53 AM
Hello all toghether
I was dissapointed by XSD.exe and XsdObjectGen.exe because the missing support of Lists and enumerations as Flags.
Xsd2Code provided this. Very cool.
I have the following problem for the XMl code below. I can successfully generate code with Xsd2Code. No problem there. I can it integrate in a webservice and publish it.
But as soon i bind myself as a consumer of the webservice, the value for "MyComplexType" is a string array. when using code on the consumer level I have to code like object.Text[0] = "MyName".
In contrast to that "XSD.exe" generated code which appears at the client like "object.Value". I cannot use Xsd2Code because the Interface is already out with object.Value Properties. 
I'm stuck with XSD.exe!!!!! Panic!!! What can I do except quit the job?
When using the tool on a schema like
<xsd:complexType name="MyComplexType" mixed="false">
    <xsd:extension base="xsd:string">
      <xsd:attribute name="category" type="xsd:int" use="optional" default="0" />
      <xsd:attribute name="format" type="xsd:string" use="required" />
And a instance like this
<Name format="text" category="firstname">MyName</Name>