[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

From voltages to XML

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Tue, 21 Aug 2018 08:44:02 +0000

From voltages to XML

Hi Folks,

Once upon a time there was a device containing a continuous stream of voltages. Along came a clever fellow who decided to:

  • Discretize the continuous stream of voltages into parts, which he called “bits”.
  • Bits with a voltage at or above a certain level, he represented with the number 1. Bits below the level, he represented with the number 0.

 

After doing so, here is what he had:

11110001000101011110000110000101101101011100000110110001100101001111100100100001100101011011000110110001101111001011000010000001110111011011110111001001101100011001000011110000101111010001010111100001100001011011010111000001101100011001010011111000001010

For reasons no one quite knows, the fellow decided to break up this long string of zeroes and ones (which he referred to as a “binary string”) into groups of 8. He treated each group as representing a number and converted each number to a base 16 value (hexadecimal). After doing so, here is what he had:

3C 45 78 61 6D 70 6C 65 3E 48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 3C 2F 45 78 61 6D 70 6C 65 3E 0A

The fellow was uncomfortable dealing with hexadecimal values and decided to let each pair of hexadecimal digits (hex digits) represent a character:

Hex 3C shall be represented by the character <
Hex 45 shall be represented by the character E
Hex 78 shall be represented by the character x
Hex 61 shall be represented by the character a

He was far more systematic than I show here, but you get the idea. This mapping from hex to characters he called an “encoding”. After doing the encoding, he had this:

<Example>Hello, world</Example>

He called this XML.

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.