locked
why stocktrader sample application uses both XML Serializer and DataContractSerializer ? RRS feed

  • Question

  • I have been studying stock trader sample application for a while and found it very useful. however, i can't figure it out why the sample uses both XML Serializer and DataContractSerializer in its Customer data contract as seen below.

    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://trade.samples.websphere.ibm.com", TypeName="AccountDataBean")]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
        [System.Runtime.Serialization.DataContractAttribute(Namespace =http://trade.samples.websphere.ibm.com",Name="AccountDataBean")]
        public sealed class AccountDataModel
        {


    • Edited by kebede Wednesday, July 3, 2013 5:44 AM
    Tuesday, July 2, 2013 3:16 PM