[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
How should a two-digit airport runway number be represented in XML?
- From: Roger L Costello <costello@mitre.org>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Mon, 24 Jun 2024 15:17:44 +0000

Hi Folks,
"Runways, all runways, have a 2-digit number that represents the magnetic heading of the runway to the nearest 10 degrees. If the runway's heading is 265 — 274 degrees, then the runway number
is 27 — always drop the last “0.” The opposite end of the runway is 180 degrees apart, so Runway 09 (90 degrees)."
How to represent a runway number in XML?
Specifically, how to represent Runway 09?
Like this:
<runwayNumber>09</runwayNumber>
Or like this:
<runwayNumber>9</runwayNumber>
One might argue that the former is better because it reflects how runways are actually numbered at airports - with exactly two digits.
On the other hand, one might argue that the latter is better because the value is an integer and the removal of the leading zero puts the integer into a normalized/standardized representation.
You might further argue that XML is for machine processing and machines don't need the leading zero. If the runway number needs to be visually displayed to humans, then a zero can be prepended as desired.
What do you think? Which form is better?
/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!
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.
|
|