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

Advice: inline node editing, or not?

  • To: xml-dev@l...
  • Subject: Advice: inline node editing, or not?
  • From: Jay Vaughan <jv@a...>
  • Date: Wed, 23 Jul 2003 15:24:07 +0200

music node
Hiya,

I'm using the libxml2 libs for a project, and using the parser to 
create my 'node' tree at startup time.

The choice I'm confronted with now is whether to:

a) traverse the parsed tree, use an iteration to build my own 
datastructures (linked lists/hash tables) based on that tree, throw 
away the tree, and operate (functionally) on my own datastructures

b) use the tree returned from xmlParseFile() indefinitely, 
maintaining the node list and operating directly on node 
properties/attributes.

Option a) is workable - I can go ahead and build all the intensive 
datastructures that I need to, from a parsed tree, and then throw 
away the tree - but there are some headaches with this approach.

Option b) would be preferred, even if it is RAM hungry, because then 
I can focus on other aspects of my app without having to deal too 
much with back-end maintenance of my lists and hashes, not to mention 
that it is really a nice idea to be able to operate directly on 
XML-ized datasets (easy to edit!).  Also, it is good for persistence, 
because I can then just save the trees and don't need to re-build 
them from scratch out of my own datastructures.

But, I'm concerned that this may not necessarily be an efficient 
approach, or at least I may run into problems with performance.

Does anyone have some advice for me as to the pitfalls of each approach?

-- 

;

Jay Vaughan
r&d>>music:technology:synthesizers - www.access-music.de/
                 *

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.