[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: "'David Carlisle'" <davidc@nag.co.uk>, <xml-dev@l...>
  • Date: Wed, 12 Jan 2011 09:17:55 -0500

RE:  text nodes of document in XDM
------->  David Carlisle

so you could just serialize document nodesas <x:document>....</x:document>
and reconstruct the XDM by taking the content of teh x;document element 
(discarding the namespace bound to x) and making that the content of a 
document node. this is a little more than just an xml parser, but 
trivial bit of xquery for example.
----------->

I had debauted this then tossed it as I wanted the degenerate case of a
"normal" document to not have the artificial wrapper.
But since then I've found other subtle cases where that's not possible
anyway so I think you suggestion may in fact be the cleanest way to go.

It may even be possible to "stream" this parsing using StAX or SAX with a
filter that removes the outer document element node without having to pull
in the entire document. 

Thanks !


----------------------------------------
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.