Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Re: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <jcowan AT reutershealth.com>
  • To: elharo AT metalab.unc.edu (Elliotte Rusty Harold)
  • Cc: xom-interest AT lists.ibiblio.org (Xom Interest)
  • Subject: Re: [XOM-interest] Re: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial)
  • Date: Wed, 25 Sep 2002 13:09:44 -0400 (EDT)

Elliotte Rusty Harold scripsit:

> > Element auxroot = aux.getRootElement();
> > aux.setRootElement(new Element("bogus"));
> > holder.appendChild(auxroot);
>
> Yes, that should work. The main question is how to make the API
> pretty, even if that's what we're doing behind the scenes.

I suggest

Element detachRootElement()

which returns the old root and creates a new root named "XOM:bogus" or the
like.

--
John Cowan
jcowan AT reutershealth.com
I am a member of a civilization. --David Brin




Archive powered by MHonArc 2.6.24.

Top of Page