Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Make DOMConverter methods public?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT mercury.ccil.org>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Make DOMConverter methods public?
  • Date: Fri, 18 Jul 2003 00:28:09 -0400

Elliotte Rusty Harold scripsit:

> You can't create a DOM element without creating DOM document, at
> least not within DOM. In DOM every element has a document object, and
> cannot be disassociated from that document. I suppose it might be
> possible to change a single DOM element to a single XOM element, but
> the reverse is not possible, within the limits of DOM. (You could use
> implementation specific classes, but it's ugly and non-portable, and
> generally breaks every time the DOM vendor updates their
> implementation.) How are you getting elements without documents
> anyway?

My idea would be that if you get a DOM, you might want to find
the interesting elements thereof and then construct XOM Elements
out of them (by deep copy, of course) without having to convert
the whole DOM.Document.

--
"And it was said that ever after, if any John Cowan
man looked in that Stone, unless he had a
jcowan AT reutershealth.com
great strength of will to turn it to other www.ccil.org/~cowan
purpose, he saw only two aged hands withering www.reutershealth.com
in flame." --"The Pyre of Denethor"




Archive powered by MHonArc 2.6.24.

Top of Page