Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] does XOM offer any performance advantages for me?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: jason mazzotta <jazzdman AT comcast.net>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] does XOM offer any performance advantages for me?
  • Date: Fri, 25 Mar 2005 10:24:53 -0500

jason mazzotta wrote:
Hi,
I'm relatively new to using XML, and I'm working on a project that I think ultimately is a big lesson is what NOT to use XML for. That said, I've found XOM and I'm trying to understand if there are any performance advantages in using it for what I want to do. From reading the JavaDoc for the NodeFactory and the examples, it can be used to help find particular nodes in an XML tree. I'd be interested in trying to prune my XML document down to a particular branch with its leaves intact. Can I do that with a NodeFactory, or would that end up being so complex that I'd be better off simply taking the performance hit of constructing the DOM for the entire document?

This is *exactly* what NodeFactory is designed to do. It should be fairly simple to do this. There are examples of this in the nu.xom.samples package. If you get confused, holler.



--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page