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

Re: Best Practice: id-idref or external entities?

  • From: Peter Hunsberger <peter.hunsberger@gmail.com>
  • To: David Carlisle <d.p.carlisle@gmail.com>
  • Date: Thu, 8 Oct 2015 09:50:30 -0500

Re:  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@m...> 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]


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.