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

XML quiz

  • From: Roger L Costello <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Thu, 20 May 2021 19:30:19 +0000

XML quiz

1. Define the term “lexical structure”.

2. Is the set of characters of a parsed XML document always identical to the set of characters in which the XML document was written?

3. Can you change the interpretation of a sequence of characters in an XML document?

Scroll down to see the answers …

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1. The lexical structure of the XML language is the characters that may appear in an XML file and how they are collected into lexical units, or tokens.

 

2. Source versus parsed character sets: The set of characters of a parsed XML document is not necessarily the same as the one in which the XML document is written.

Example: This XML document:

<Test>&apos;</Test>

uses this character set: < T e s t > & a p o /

The set of characters of the parsed XML document is this: < T e s t > ' /

 

3. The syntax of XML’s escape characters represents a state-independent encoding for a character – the & ; pair changes the interpretation of its embedded string to form a single character.

Example: &apos; encodes ' and the encoding is independent of what came before it.

If we go a layer lower to the unicode encoding of characters we find state-dependent encoding of bytes: the interpretation of a byte may depend on byte(s) before it.

 



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