There are more alternatives between:
- everything in the elements
- all in attributes
In general, every atomic value can be placed in an attribute, and I
prefer that. There are two aspects here:
- elements are more convenient for XML processing
- attributes are more human-readable because they contain less ballast
Each use case requires a different perspective and that's why I marked
my solution as alternative.
--
Kit
pá 14. 4. 2023 v 23:10 odesílatel Arjun Ray <> napsal:
>
> On Fri, 14 Apr 2023 22:29:55 +0200, Kit <> wrote:
>
> | An alternative could be this:
> | <Runway
> | GLS_Channel="20abc"
> | Identifier="RW25R"
> | Latitude="N82091570"
> | Longitude="E156450340"
> | />
>
> A voice in the wilderness, long ago...
>
> http://lists.xml.org/archives/xml-dev/200205/msg01027.html
>
> "The most likely way for the world to be destroyed, most experts agree,
> is by accident. That's where we come in; we're computer professionals.
> We cause accidents." -- Nathaniel Borenstein
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe:
> subscribe:
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>