Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. serialize colors and fonts in XML

serialize colors and fonts in XML

Scheduled Pinned Locked Moved XML / XSL
xmljsontutorial
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    urbane tiger
    wrote on last edited by
    #1

    Is there a way to serialize non-textual objects, for example fonts and colors, using XML Serialization. working fine with binary formatter, but I have to use XML for political reasons. Thanks PhilD

    L 1 Reply Last reply
    0
    • U urbane tiger

      Is there a way to serialize non-textual objects, for example fonts and colors, using XML Serialization. working fine with binary formatter, but I have to use XML for political reasons. Thanks PhilD

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      pjd1001 wrote:

      I have to use XML

      XML is text based so the question is can you represent your data in text. The answer of course is Yes. There different ways to do it. Lets look at a Date. It's a numeric type so we can store the string representation of the number or we can transform the date into a human readable format and store that as long as we can parse it back into the numeric type it will work. Another approach is to use a standard binary data mechanism in XML which is Base64 encoding. Does that help?

      U 1 Reply Last reply
      0
      • L led mike

        pjd1001 wrote:

        I have to use XML

        XML is text based so the question is can you represent your data in text. The answer of course is Yes. There different ways to do it. Lets look at a Date. It's a numeric type so we can store the string representation of the number or we can transform the date into a human readable format and store that as long as we can parse it back into the numeric type it will work. Another approach is to use a standard binary data mechanism in XML which is Base64 encoding. Does that help?

        U Offline
        U Offline
        urbane tiger
        wrote on last edited by
        #3

        Yeah, but I dont have to do the transforms on a double or or an int, nor a decimal (I think) so why should I have to do common things like Colors & Fonts - I guess I resent having to delve into XML serilization when binary works fine.

        L 1 Reply Last reply
        0
        • U urbane tiger

          Yeah, but I dont have to do the transforms on a double or or an int, nor a decimal (I think) so why should I have to do common things like Colors & Fonts - I guess I resent having to delve into XML serilization when binary works fine.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          What are we, girl friends? I don't think so. :-D Besides, if you don't like writing code just switch to being a Visual Basic Drag n Drop developer.

          U 1 Reply Last reply
          0
          • L led mike

            What are we, girl friends? I don't think so. :-D Besides, if you don't like writing code just switch to being a Visual Basic Drag n Drop developer.

            U Offline
            U Offline
            urbane tiger
            wrote on last edited by
            #5

            given i've been writing the stuff for 30+ years I guess the thrill of writing stuff that don't need writing has gone. BTW only Basic I ever used was Dartmouth Basic on a GE timesharing system - Gates would have been at scool then & I dont mean grad or high scool cya

            L 1 Reply Last reply
            0
            • U urbane tiger

              given i've been writing the stuff for 30+ years I guess the thrill of writing stuff that don't need writing has gone. BTW only Basic I ever used was Dartmouth Basic on a GE timesharing system - Gates would have been at scool then & I dont mean grad or high scool cya

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              I been at this only 15+ years, I wish I had even one team member with half your experience. You guys hiring? :)

              U 1 Reply Last reply
              0
              • L led mike

                I been at this only 15+ years, I wish I had even one team member with half your experience. You guys hiring? :)

                U Offline
                U Offline
                urbane tiger
                wrote on last edited by
                #7

                we're always hiring, no shortage of applicants, you can join at your leisure. rgds phild - retiree's inc. btw I did the xml stuff yesterday oh I do free work for heart disease research - university CompSci are the politicians.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups