470,620 Members | 1,399 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,620 developers. It's quick & easy.

Serializing a Dictionary As Xml Attributes

Hi,

I was wondering if somone could provide an outline of how I would
go about implementing serialization that turns a string dictionary to
XML attributes. For example, suppose I have

<XmlRoot()_
Public Class Foo

' I want the key/value pairs to be xml attributes of the root.
Forever and always. =)
Public FooAttributes As Dictionary(Of String, String)
End Class

When I serialize an instance of Foo to XML I would like FooAttributes
to end up as XML attributes on <Foo />

Cheers,
Aeden

Mar 22 '07 #1
0 2144

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by none | last post: by
4 posts views Thread by brianobush | last post: by
2 posts views Thread by Aleksei Guzev | last post: by
4 posts views Thread by Jason Shohet | last post: by
1 post views Thread by Benton | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.