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

Re: Breadth-First XML Serialization


sax xml serialize
Hi Simon,

Simon Kissane wrote:
 > [...]
> But a breadth-first serialization could be something like:
> 1 0 Root
> 2 1 ElementA
> 3 1 ElementC
> 4 2 ElementB1
> 5 2 ElementB2
> 6 3 ElementD
> 7 4 "Some text"
 > [...]

   I have also been thinking in that direction before. I belive, that 
tis approach might only be usefull in drill-down scenarios.
   I was playing with the idea of using a similar representation as a 
kind of index for an existing XML file, by adding a reference to the 
position of the element in the original text serialization. An 
application could thus quickliy scan the data for an element of interest 
and then use the reference pointer to extract the required subtree via 
DOM or SAX.
   I also imagined that transformers could benefit from such an index, 
since lookups of nodes from different parts of the document could be 
done without constructing large internal trees containing unneeded depth.

   Did you find any other use-cases besides the drill-down scenario in 
which this kind of representaion might be helpful? I would view this 
rather as a kind of augmented representaion than as an alternative one, 
since it sacrafices too much of the benefits of the normal XML 
representation.

Cheers
~Lars

-- 
Lars Oppermann <lars.oppermann@s...>               Sun Microsystems
Software Engineer - StarOffice                           Sachsenfeld 4
Phone: +49 40 23646 959                                D-20097 Hamburg
Fax:   +49 40 23646 550                  http://www.sun.com/staroffice

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.