Hi
I am trying to serialize a collection of GUIDs by overriding the
serialize function on a diagram component I am using.
The following code sucessfully serializes a single GUID:
Public Overloads Overrides Function Serialize(ByVal Key As Object) As
String
Dim objXML As New XmlDocument
Dim objParent As XmlElement
objParent = objXML.CreateEl ement("Interact ionShape")
objParent.SetAt tribute("Intera ctionGUID", _
m_InteractionGU ID.ToString) <-----change to
collection
objParent.Inner Xml = MyBase.Serializ e(Key)
Return objParent.Outer Xml
End Function
Which gives the following XML: (some XML deleted)
<InteractionSha pe InteractionGUID ="50179760-9d24-4239-8029-0fb08be7630b">
</InteractionShap e>
Does anyone know how to serialize a collection (where
m_InteractionGU ID is a strongly typed collection of GUIDs rather than
a single GUID) to give something like the following XML?
<InteractionSha pe>
<InteractionGUI D GUID="50179760-9d24-4239-8029-0fb08be7630b">
<InteractionGUI D GUID="84611660-9d45-3575-3545-0bb08be5816f">
</InteractionShap e>
- OR -
<InteractionSha pe>
<InteractionGUI D>50179760-9d24-4239-8029-0fb08be7630b</InteractionGUID >
<InteractionGUI D>84611660-9d45-3575-3545-0bb08be5816f</InteractionGUID >
</InteractionShap e>
Kind regards, Carl