Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Listviews - Accessing SelectedItemArray Pin
Darryl Borden17-Oct-03 3:32
Darryl Borden17-Oct-03 3:32 
General2 different programing languages in one piece of code Pin
zukhanye15-Oct-03 23:10
zukhanye15-Oct-03 23:10 
GeneralRe: 2 different programing languages in one piece of code Pin
Heath Stewart16-Oct-03 9:04
protectorHeath Stewart16-Oct-03 9:04 
GeneralProblem with Mdi forms Pin
CristianRicciolo15-Oct-03 23:05
CristianRicciolo15-Oct-03 23:05 
GeneralUsing custom cursors on a form. Pin
Randhir Sinha15-Oct-03 21:41
Randhir Sinha15-Oct-03 21:41 
GeneralToolbar Pin
Srikar Y15-Oct-03 19:12
Srikar Y15-Oct-03 19:12 
GeneralRe: Toolbar Pin
Heath Stewart16-Oct-03 9:10
protectorHeath Stewart16-Oct-03 9:10 
GeneralDesign Question Pin
J. Dunlap15-Oct-03 18:44
J. Dunlap15-Oct-03 18:44 
I have a stylesheet XML structure, represented by a class with a dictionary of attributes in it. These attributes are all serializable in one way or another, but they are not always directly serializable to XML - sometimes they must be serialized as binary data.

If this stylesheet is saved as a file, I want it to be an XML file, in which case the bitmaps, etc, could be saved to individual files. If it is serialized (to a resource, etc), I don't care whether it's human-readable or not.

So I'm dealing with two different types of serialization of two different types of data. What do you think is the best choice? :

Serializing to a file:
<list>
  • Serialize all non-XML data (bitmaps, etc) to separate files
  • Store the non-XML data as hex/Base64 directly in the XML nodes
  • Store the non-XML data in separate nodes at the bottom of the XML file
  • Store the non-XML data in a single binary serialization file
  • Binary Stream/Resource:
    <list>
  • Serialize all non-XML data (bitmaps, etc) to separate streams
  • Store the non-XML data as hex/Base64 directly in the XML nodes
  • Store the non-XML data in separate nodes at the bottom of the XML text
  • Store the non-XML data in a single binary serialization stream and the XML data in another
  • Store both the XML and the non-XML data in a single binary stream



  • "Don't judge each day by the harvest you reap, but by the seeds you plant." -- Robert Louis Stevenson

    FLUID UI Toolkit | FloodFill in C# & GDI+







    GeneralRe: Design Question Pin
    J. Dunlap15-Oct-03 20:42
    J. Dunlap15-Oct-03 20:42 
    GeneralIPC Communication Pin
    vikramlinux15-Oct-03 18:23
    vikramlinux15-Oct-03 18:23 
    GeneralRe: IPC Communication Pin
    Heath Stewart16-Oct-03 9:17
    protectorHeath Stewart16-Oct-03 9:17 
    GeneralRe: IPC Communication Pin
    vikramlinux16-Oct-03 17:47
    vikramlinux16-Oct-03 17:47 
    GeneralRe: IPC Communication Pin
    Heath Stewart17-Oct-03 3:11
    protectorHeath Stewart17-Oct-03 3:11 
    GeneralRequesting a Web page. Pin
    fadee15-Oct-03 18:14
    fadee15-Oct-03 18:14 
    GeneralRe: Requesting a Web page. Pin
    Heath Stewart16-Oct-03 9:16
    protectorHeath Stewart16-Oct-03 9:16 
    Generalinstallating .NET CLR Pin
    Norman Fung15-Oct-03 16:46
    Norman Fung15-Oct-03 16:46 
    GeneralRe: installating .NET CLR Pin
    eggie515-Oct-03 17:17
    eggie515-Oct-03 17:17 
    GeneralThe Great Threading Conundrum Pin
    eggie515-Oct-03 14:59
    eggie515-Oct-03 14:59 
    GeneralRe: The Great Threading Conundrum Pin
    Wjousts15-Oct-03 15:33
    Wjousts15-Oct-03 15:33 
    GeneralRe: The Great Threading Conundrum Pin
    eggie515-Oct-03 15:49
    eggie515-Oct-03 15:49 
    GeneralRe: The Great Threading Conundrum Pin
    Wjousts16-Oct-03 5:03
    Wjousts16-Oct-03 5:03 
    Generalapi Pin
    jphuphilly15-Oct-03 13:41
    jphuphilly15-Oct-03 13:41 
    GeneralRe: api Pin
    Daniel M. Edwards15-Oct-03 13:57
    Daniel M. Edwards15-Oct-03 13:57 
    GeneralRe: api Pin
    J. Dunlap15-Oct-03 14:10
    J. Dunlap15-Oct-03 14:10 
    GeneralRe: api Pin
    Carlos H. Perez15-Oct-03 15:14
    Carlos H. Perez15-Oct-03 15:14 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.