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

Re: RFC for XML Object Parsing

  • From: Michael Kay <mike@saxonica.com>
  • To: John Cowan <johnwcowan@gmail.com>
  • Date: Mon, 24 Mar 2014 21:18:50 +0000

Re:  RFC for XML Object Parsing
> 
> If I understand the oid attribute correctly, the receiver may maintain a mapping from oids to element nodes in its internal representation, and what the sender must guarantee is that if the oid is the same, the other attributes, their values, and the content of the element are the same as before.  


Thanks John. So actually the recipient can do what it likes with it, and hashing it to a memory address is just one implementation possibility?

But uniqueness demands context. What scope is the OID unique within? All documents that the recipient has processed, ever? All documents from the same sender? All elements within the same document? (If it's from all senders, then how can a sender make an invoice number unique?). 

My understanding is now that the OID means "you might already know this element. If you do, you can ignore its content. If you don't, process it in the normal way, and make a note of the OID in case you ever see it again". Is that right?

Next question: where does the claim of 3-fold performance improvement come from? Isn't that entirely dependent on the number of cache hits, i.e. highly variable depending on the workload?

The parsing optimization presumably requires that if the OID is recognized, then we can skip to the end of the element with minimal parsing cost.

Conjecture: I suspect that this can be achieved without departing from standard XML. An application using a standard Stax parser could probably achieve most of this benefit.

Another alternative would be a call-back protocol. Don't send the full invoice, just send the invoice number. If the recipient wants to know more about this invoice, they send a message back to ask for it. Also known as hyperlinking.

Michael Kay
Saxonica




[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.