How Can Individual Bits of a Word Be defined In XML?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • benn

    How Can Individual Bits of a Word Be defined In XML?

    I have a microcontroller that I wish to send status data (via serial
    RS-232) out to a PC com port. Im trying to minimize the amount of
    bytes I transmit, so I want the micro to bit-pack various different
    fields into just a few bytes.

    For example, one 8-bit byte will contain the following information:

    Bit 0: Has Green Eyes
    Bit 1: Has Brown Hair
    Bit 2: Is Under 6 ft
    ...
    Bit 7: Has Freckles


    How can I efficiently use XML to tag each bit field?

    Thanks!
  • Joseph Kesselman

    #2
    Re: How Can Individual Bits of a Word Be defined In XML?

    benn wrote:
    recommend any particular book / video on xml?
    http://www.ibm.com/xml -- lots of useful information from basic
    tutorials through examples through opinion pieces. (Not all of which IBM
    officially agrees with; they're edited as an almost-independent web
    journal.)


    --
    Joe Kesselman / Beware the fury of a patient man. -- John Dryden

    Comment

    Working...