Another question about XML Serialize

  • Thread starter Thread starter Dominic
  • Start date Start date
D

Dominic

I have a list of objects, but those objects also reference each other.
For example each object has a child list which might contains zero or
more refs to othe object in the list (there are various other
relationships, it isn't a trict hierarchy).

How do you normally encode this sort of thing in XML?

Dom
 
Dom,

In this situation, XML serialization doesn't work well, because when you
deserialize the object, it will create separate instances of it. If you
need the object in an XML format, then you will have to use the
SoapFormatter and use the XML that is returned from that.

Hope this helps.
 
Back
Top