Re: Wrapping of nodes into a document

On 10/2/07, Innovimax SARL <innovimax@gmail.com> wrote:
>
> Ok but it suddently raise a question in my mind
>
> Suppose this is the content of a document
> <?xml version="1.0"?>
> <?my-py I like it ?>
> <!-- my comment -->
> <root />
> <!-- my comment -->
> <?my-py I like it ?>
>
> If I make a for-each on it, I will loose the PI and the comments, right ?

You shouldn't because they are the children of the document.  The XML
processing instruction isn't present as a child according to the infoset
and so shouldn't be preserved when wrapped.


-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Tuesday, 2 October 2007 22:43:44 UTC