Re: [xml-dev] RFC for XML Object Parsing - New Thought
From: John Cowan <johnwcowan@gmail.com>
To: Brian Aberle <xmlboss@live.com>
Date: Mon, 31 Mar 2014 10:13:18 -0400
On Mon, Mar 31, 2014 at 6:02 AM, Brian Aberle <xmlboss@live.com> 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)