OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] text nodes of document in XDM

On 12/01/2011 02:49, David Lee wrote:
> So for example if I serialize to a stream (or file)
>      document {  1 , "hi" ,<foo/>  , 2 }
> then then deserialize that back into XDM values ... how "important" is it to
> reconstruct the sequence inside the document.

irrespective of serialisation, a document node can not have a sequence 
of atomic items as children.

That is a legal xquery expression, but the constructed value is a 
document node with three children not four:

text     "1 hi"
element  foo
text     "2"

So the only sequence that you need to be able to reconstruct is this, 
there can't be a requirement to reconstruct the initial expression from 
the result value.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS