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

15 elementary truths about XML

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Mon, 31 Oct 2011 18:07:12 +0000

15 elementary truths about XML
Hi Folks,

Below I start with the most basic concepts and build upon them. Do you agree with each statement?  /Roger

1. An XML file is a sequence of zeros and ones called bits.

2. A sequence of 8 bits is called a byte.

3. Thus, an XML file is a sequence of bytes.

4. Here is an example of a byte: 00110001

5. That byte may be interpreted in various ways by software applications. For example, it may be interpreted as:

    - corresponding to an integer in base two. 
      In base 10 it represents the number 49.

    - corresponding to a character.
      In the ASCII character encoding scheme it 
     represents the character 1.  

6. XML processors always interpret the bytes in XML files as characters.

7. Thus, XML processors interpret XML files as a sequence of characters.

8. There are various character encoding schemas, such as ASCII and UTF-8.

9. An application may identify the character encoding scheme used by an XML file either by its encoding attribute in the XML declaration or by some out-of-band means.

10. An XML application is software that processes the bytes in an XML file.

11. An XML processor is an XML application. As discussed above, it interprets the bytes in XML files as a sequence of characters.

12. An XML Schema validator is an XML application.

13. XML applications may interpret the bytes in XML files differently than how an XML processor interprets the bytes.

14. For example, consider the XML Schema file that declares an element A with a Boolean data type:

    <element name="A" type="boolean" />

    Suppose the value of <A> is the above byte. 
    The element declaration informs the XML Schema validator 
    and the XML Schema validator interprets the byte as the 
    Boolean value "true."

15. Thus, an XML processor interprets the byte as representing the character 1, and an XML Schema validator interprets the byte as representing the Boolean value "true."






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