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

Text editor mirage

  • From: Roger L Costello <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Mon, 13 Dec 2021 12:33:59 +0000

Text editor mirage

[Definition] Mirage: something that appears real or possible but is not in fact so.

Hi Folks,

Recently I used a text editor to open an XML document. Here’s what I saw:

<Document>

    <Greeting>Hello, world</Greeting>

</Document>

That is, at the top of the screen I saw:

<Document>

About a centimeter below I saw:

    <Greeting>Hello, world</Greeting>

And a centimeter below that I saw:

</Document>

It is a mirage.

There is no vertical dimension in the XML. The XML is just a linear list of symbols:

<Document>NL    <Greeting>Hello, world</Greeting>NL</Document>

The invisible characters I denote by NL.

The XML consists  of the < symbol followed by the D symbol followed by the o symbol followed by …

Another mirage.

There are no <, D, o, … symbols in the XML. The XML is just a series of hex digits:

3C 44 6F 63 75 6D 65 6E 74 3E 0D 0A 20 20 20 20 3C 47 72 65 65 74 69 6E 67 3E 48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 3C 2F 47 72 65 65 74 69 6E 67 3E 0D 0A 3C 2F 44 6F 63 75 6D 65 6E 74 3E

-------------------------------------

The text editor tricks us into thinking that there are 2 dimensions to XML documents and the XML document contains symbols that we recognize as letters of the alphabet, spaces, punctuation, and other symbols.

The mirage is so good, so compelling that we start to believe that an XML document is essentially a sheet of paper with vertical and horizontal dimensions and with words on the sheet of paper.

/Roger

P.S. You can replace “XML” with “JSON” or “CSV” or any other text format.



[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.