Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Serialization

Status
Not open for further replies.

mcs1000

Programmer
Jul 3, 2007
26
0
0
GB
When I serialize a member with padded spaces I am losing the spaces from the end e.g. "TEXT " -> <field>TEXT</field>

I am using the following set accessor to pad the field

public String CWReference {
get { return this.cwreference; }
set { this.cwreference = value.PadRight(PaymentSetupFile.REFERENCE_LENGTH, ' '); }
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top