I am creating a skinning system for a music program I wrote. I am trying to store information about gui objects in an xml file.
The file looks something like this
[Font: Name=Times New Roman, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]
for each item.
What I want to do is be able to dump the font info into the xml and read out, but when I do that, I get the font's tostring command resulting in something like [Font: Name=Times New Roman, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]. This doesnt help me because I would have to go through pains to parse the info out of it. Is there any way to just dump the object into an xml file node and retrieve it without going through parsing hell?
Same question applies for a few other things: colors and cursors. I want it to be easy to read text based information like [transparent] or [blue] just like it is in vb.net's interface rather than asigning a hex value.