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

XML-formatted data is in a perfect form for human comprehension

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Tue, 6 May 2014 15:48:06 +0000

XML-formatted data is in a perfect form for human comprehension
Hi Folks,

As you read these words, inside your brain you are parsing them, you are creating a parse tree. 

This quote says it better: 

	Sentences, linear sequences of symbols,
	are really just serializations of parse trees
	we humans grok natively in hardware. To
	get an idea across to someone, we have
	to conjure up the same parse tree in their
	heads using a word stream. [The Definitive
	ANTLR 4 Reference, p. 11]

Now think about XML. An XML document is a parse tree. Let's see why. 

In the old days we would take this data:

	Parsing Techniques, Dick Grune/Ceriel J. H. Jacobs, 2007

create a grammar:

	Book --> Title Authors Date
 	Title --> string
 	Authors --> Author+
 	Author --> string
 	Date --> year

and parse the data using the grammar, to produce a parse tree.

The result is each item of data is labeled:

	Title: Parsing Techniques
 	Author: Dick Grune
 	Author: Ceriel J. H. Jacobs
 	Date: 2007

and the labeled items are structured into a tree.

With XML we have dispensed with all of that.  Or, rather, we have rolled all that into the creation of data. Allow me to explain. With XML, data is labelled:

	<Title>Parsing Techniques</Title>
 	<Author>Dick Grune</Author>
 	<Author>Ceriel J. H. Jacobs </Author>
 	<Date>2007</Date>

and is structured into a tree:

	<Book>
 		<Title>Parsing Techniques</Title>
 		<Authors>
 		 	<Author>Dick Grune</Author>
 			<Author>Ceriel J. H. Jacobs </Author>
 		<Date>2007</Date>
           		</Authors>
 	</Book>

So the data has been labeled and the structure of the data has been made explicit. XML is a parse tree!

Let's recap:
- The brain processes information as a parse tree
- XML represents information as a parse tree

Therefore, XML is the perfect form for human comprehension! 

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