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

RE: RFC for XML Object Parsing - New Thought

  • From: Brian Aberle <xmlboss@live.com>
  • To: John Cowan <johnwcowan@gmail.com>
  • Date: Mon, 31 Mar 2014 08:42:22 -0600

RE:  RFC for XML Object Parsing - New Thought
John,
 
This will work then based on knowing that PI's can be scoped. I don't even need to build a PI table to parse this design since a "Current PI" WILL ALWAYS MATCH the element to follow.   This avoid XML's un-orderable attributes, um problem.  
 
It adds more markup in terms of data size.  It takes away (a little) from the "beautiful" readability of XML.  It WILL WORK and I would need a day to tweak XMLFoundation to support that.  One (small) drawback is that "cut and paste" of XML in an editor could be made invalid by not pairing Element PI's properly.  That cant happen with the smaller foot printed OID as #1 attribute.
 
Perhaps the #1 placed OID should have a PI equivalent to support any existing environment that cannot easily add an ordered attribute 1st prior to writing the rest of the attributes.
 
This is some good thought.  huh?
 
Brian
 

From: johnwcowan@gmail.com
Date: Mon, 31 Mar 2014 10:13:18 -0400
To: xmlboss@l...
CC: xml-dev@l...
Subject: Re: RFC for XML Object Parsing - New Thought



On Mon, Mar 31, 2014 at 6:02 AM, Brian Aberle <xmlboss@l...> wrote:

Can PI's be scoped inside an element? 

Indeed they can.  But I think what you really want is a PI containing the OID to be placed *before* the element.  Doing it that way means that you will have the OID available before you even begin to parse the start-tag.  That seems to me to be better than having it as the first attribute.

Fortunately, that can always be done: you can have a PI anywhere except inside another PI, a tag, an entity reference, a CDATA section, or a comment.

--
It was impossible to inveigle
Georg Wilhelm Friedrich Hegel
Into offering the slightest apology
For his Phenomenology.                      --W. H. Auden, from "People" (1953)



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