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

Re: RFC for XML Object Parsing

  • From: Thomas Passin <list1@tompassin.net>
  • To: xml-dev@lists.xml.org
  • Date: Sun, 30 Mar 2014 23:28:51 -0400

Re:  RFC for XML Object Parsing
As I have been following this thread, it's seemed to me that this is exactly a case for a Processing Instruction. E.g.,

<?use-cache attribute='oid' element='cache-candidate'?>
<cache-candidate oid='check cache' ....>.....</cache-candidate>

Using a PI gets you the same thing as order would, if order were to be allowed on attributes. And after all, a PI is provided so you can pass special processing instructions to a parser or processor.

TomP

On 3/25/2014 4:57 AM, Doug wrote:
Brian,

a shot in the dark, but since attribute order is important but

apparently can't be guaranteed, could you perhaps stuff the oid

and update time into XML Processing Instructions injected as

preceeding sibblings for each element/object that has an id

you care about?

Doug

On Mon, 24 Mar 2014 01:25:01 PM Brian Aberle wrote:

 > Peter said,

 > "Basically, it seems you believe that some number of endpoints are

 > going to share some deep understanding of the same object model so
that you

 > can subsequently exploit this shared understanding to enable some

 > efficiencies in the XML parsing process?"

 >

 > Not exactly, it not that they intimately share an object model, they only

 > share a key to the data. Every Invoice has an invoice Number. EDI 810

 > says so. When modeling that in XML set the oid= to the unique key(in this

 > case the invoice number). Attribute order matters,oid must be first

 > however, OID IS NEVER REQUIRED. It is as you say - an optimization -
it is

 > an optional optimization. Nobody will be forced to retrofit into an

 > existing design that was depending on the principle that attribute order

 > is, was, and always will be insignificant. I can imagine that in some

 > existing implementations adding "oid" under the conditions that it be
first

 > may not be simple, in other cases it's a 1 liner. If "oid" is
unknown, the

 > data goes through the logic already in place. If "oid" is there then we

 > can parse triple fast.







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