you need two classes to serialize the content of car, vehicule cannot be a
string since it has XML content. For example:
<XmlRoot("vehicule")>
Public Class
Public Name as VehiculeData
EndClass
Public Class VehiculeData
<XmlAttribute> Public datatype as String
<XmlText> Public Description As String
End Class
HTH,
Christoph Schittko
Software Architect, .NET Mentor
MS MVP XML .NET
"lobrys" <lo**********@free.fr> wrote in message
news:eG**************@TK2MSFTNGP10.phx.gbl...
Hi everybody
what are the objets for the folowing XML serialisation :
(I have problem with "name" and "datatype")
<vehicule type="car">
<name datatype="String">Megane</name>
</inventory>
I Have this :
class vehicule
<xmlattributeattribute()> public type as string
public name as string
end class
But where do I put 'datatype' for "name'????
Thanks a lot
Lobrys