[Home] [By Thread] [By Date] [Recent Entries]

  • From: David Carlisle <davidc@n...>
  • To: David Lee <dlee@c...>
  • Date: Wed, 12 Jan 2011 09:35:28 +0000

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.

David


________________________________________________________________________
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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member