[Mono-list] Recursive XML serialization? XML serialization of cyclic objects?

"Andrés G. Aragoneses [ knocte ] "Andrés G. Aragoneses [ knocte ]
Fri Jan 12 02:53:39 EST 2007


Having this kind of object:

     class classA
     {
         int x;
         classA z;

         public int X
         {
             get { return this.x; }
             set { this.x = value; }
         }

         public classA Z
         {
             get { return this.z; }
             set { this.z = value; }
         }

     }

     static class Program
     {
         static void Main(string[] args)
         {
             classA myObject = new classA();
             myObject.X = 2;
             myObject.Z = myObject;
         }
     }


How can I send "myObject" via XML webservice for consumption? I am aware
that this is not possible to be XML-serialized with .NET1.1 but, can I
do it with 2.0 or Indigo?

Thanks in advance,

	Andrés	[ knocte ]

-- 



More information about the Mono-list mailing list