Serialize to XML problem

  • Thread starter Thread starter Chris DiPierro
  • Start date Start date
C

Chris DiPierro

I have a string property of a class in vb.Net that's getting set to 10
spaces (literally, " ")
If I look at the XML output, I see this:
<anyType xsi:type="MFHidden">
<ShapeID>1</ShapeID>
<Name>Hidden</Name>
<Caption>Hidden</Caption>
<Description />
<TabOrder>-1</TabOrder>
<Carryover>false</Carryover>
<Prefill> </Prefill>
<Datapaths />
<BusinessRules />
<Feedback />
</anyType>

The field in question is "Prefill", so it looks good.

However, when I try to reload this representation, the property gets set to
"" instead. It seems as if this is a bug in the XML parser. Is there a known
workaround?
 
Back
Top