OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Best Practice: id-idref or external entities?

On Thu, Oct 8, 2015 at 7:14 AM, David Carlisle <d.p.carlisle@gmail.com> wrote:
On 8 October 2015 at 13:06, Costello, Roger L. <costello@mitre.org> wrote:
> Hi Folks,
> What is your experience with using id-idref? Good experience? Bad experience? It seems to me that the id-idref pair has a lot of resemblances to GOTOs, which implies that it might be wise to avoid id-idref.

This seems a somewhat bizarre analogy?

with id you are preserving the notion of a _reference_ and can for
example see if multiple
places reference the same thing.

With entities (including files of some format you did not show) then
the data is essentially copied and (in most API) there is no record of
the reference.

Seems Roger has maybe turned the corner from being data oriented to being purely document oriented.  If you're reading XML as a human and want to follow the id to idref then yeah, you may end up jumping around.  That aside, I think id / idref is probably one of the main features of XML that distinguishes it from things like JSON.  The fact that one can normalize out common references with some degree of integrity and error checking is a very good thing for data management and possibly for compact transmission sizes.  If I'm interviewing supposed XML experts and they can't explain what id / idref do and why you might want them I'm instantly going to class them as non-experts...


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: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS