Multiple choice technology web technology

Which one of the following is a limitation of XML serialization?

  1. In classes that implement IEnumerable, the collection is not serialized

  2. You cannot serialize an object's public fields.

  3. You cannot serialize XmlNode object

  4. It does not serialize type information.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

XML serialization in .NET cannot serialize type information, which means polymorphic behavior is lost during serialization. When an object is serialized and then deserialized, it may not retain its original runtime type. This is a key limitation compared to binary serialization.