Re: [xml-dev] RFC for XML Object Parsing - New Thought

From
John Cowan <>
To
Brian Aberle <>
Date
2014-03-31T14:13:18Z
ID
<>
Thread
Re: [xml-dev] RFC for XML Object Parsing - New Thought


On Mon, Mar 31, 2014 at 6:02 AM, Brian Aberle <[email protected]> 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)