Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Document portions

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Laurent Bihanic <laurent.bihanic AT atosorigin.com>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: XOM-interest <XOM-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Document portions
  • Date: Fri, 20 Sep 2002 11:42:50 +0200

Elliotte Rusty Harold wrote:
At 10:33 AM +0200 9/19/02, Laurent Bihanic wrote:

- Document portions: JDOM uses Lists to "model" document portions. Wouldn't XOM need a DocumentFragment node class, for example as a receptacle for XSLT result trees?

A good point. I'll need to think about this further. I do suspect that when I get serious about XPath and XSLT I'll need a generic NodeList, probably comatose and possibly read-only. That may serve this use-case as well, but we'll need to explore it more deeply.

Namespaces, Elements and Attributes classes are actually specific types of DocumentFragment. With such a container class, the getFirst/NextSibling navigation model could also be applied to Attribute and Namespace.

Note that the XPath model will force you to add a Namespace node.

Laurent





Archive powered by MHonArc 2.6.24.

Top of Page