Optional Elements

Oct 14, 2008 at 8:53 PM
Hi there,$0$0$0$0When I have an element of complex type within another complex type, is there a way to have the code generate a null if the element is not specified in the xml?  I set the minOccurs=0 but didn't seem to do anything.  The constructor in the generated code still added "if (this.xxxField == null) this.xxxField = new Type();".  This seems to be ok with simple types because it adds a "xxxSpecified" property.$0$0$0$0