[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: text nodes of document in XDM

  • From: "David Lee" <dlee@calldei.com>
  • To: "'Michael Sokolov'" <sokolov@ifactory.com>, "'David Carlisle'" <davidc@n...>
  • Date: Wed, 12 Jan 2011 08:33:17 -0500

RE:  text nodes of document in XDM
>> Micheal Sokolv 

Have you considered implementing serialization of sequences of XdmItems 
rather than documents?  That way you could preserve the distinctions 
that are being lost when you go to a document.  If somebody wants to 
make a document from your serialized format, they could always construct 
it easily enough.
-==================

Absolutely ! (you can see a *draft* of this at
http://xml.calldei.com/XDMSerialize )

But the problem is one of the items can be a document.  

And once the document is serialized, if I use standard document
serialization  http://www.w3.org/TR/xslt-xquery-serialization/ 
for the document node.   I don't know how to get the document *back* into
the original XDM form.
In the case of documents which have more than just a single child element as
their children I don't know of any XML parsers which can undo what was done
during the serialization
and give me back the XDM representation of the document node item.
Maybe (probably) I am missing something obvious.    But it is this "oddity"
of what is allowed within document nodes which is a current tough spot for
coming up with an
XDM *item* level serialization format which is implementable without having
to write your own XML parser for the XML bits.
My original (naive) idea was that when hitting document nodes in an XDM item
sequence, to serialize as XML and then use an XML parser to get it back.
Then I ran into issue above which I have not yet come up with a clean
solution.



----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org




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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.