[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Is & a command?
- From: Roger L Costello <costello@mitre.org>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Mon, 14 Nov 2022 09:53:10 +0000

Hi Folks,
In UNIX there is a command named “test” which is used like this:
test expression
Upon encountering that, a UNIX-aware application (e.g., a UNIX shell) will call the test command to evaluate expression.
Interestingly, these two forms are equivalent:
test expression
[ expression ]
The book [1] that I am reading says this about the second form:
The [ is actually the name of the command
(who said anything about command names
having to be alphanumeric characters?). It
still initiates execution of the same test
command, only in this format, test expects
to see a closing ] at the end of the expression.
Okay, now to XML ….
An XML document may contain this:
<
Upon encountering that, an XML-aware application (e.g., an XML parser) will call a routine to convert the entity. One might say this:
The & is actually the name of the command.
It initiates execution of the & command and
expects to see a closing ; at the end.
So, …………….
Is & a command?
Likewise, ……………..
Is < a command?
Is " a command?
If the answers are no, then what are they? What is the difference between a command and whatever those things are?
/Roger
[1] UNIX Shell Programming by Kochan and Wood, p. 155.
|

[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!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|